Skip to content
Kolorvia
#1f1f6f

Color #1f1f6f

A moderately saturated dark blue.

Conversions

HEX
#1f1f6f
RGB
rgb(31, 31, 111)
HSL
hsl(240, 56.3%, 27.8%)
HSV / HSB
hsv(240, 72.1%, 43.5%)
CMYK
cmyk(72.1%, 72.1%, 0%, 56.5%)
LAB
lab(17.55, 28.2, -46.13)
LCH
lch(17.55, 54.07, 301.44)
OKLCH
oklch(30.1%, 0.1338, 274.8)
HWB
hwb(240, 12.2%, 56.5%)

Harmony colors

Complementary

#6f6f1f

Analogous

#1f476f
#1f1f6f
#471f6f

Triadic

#1f1f6f
#6f1f1f
#1f6f1f

Split-complementary

#1f1f6f
#6f471f
#476f1f

Tetradic

#1f1f6f
#6f1f6f
#6f6f1f
#1f6f1f

Square

#1f1f6f
#6f1f47
#6f6f1f
#1f6f47

Shades

Color #1f1f6f mixed toward black.

#1a1a5c
#15154a
#0f0f37
#0a0a25
#050512

Tints

Color #1f1f6f mixed toward white.

#2c2c9f
#3f3fc9
#6f6fd7
#9f9fe4
#cfcff2

Tones

Color #1f1f6f mixed toward gray.

#262668
#2c2c61
#33335b
#3a3a54
#40404e

Accessibility

Aa White text on this color
14.15:1
Aa Black text on this color
1.48:1

White text reads better on this background (14.15:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#1f1f63 · ΔE 2.3

Deuteranopia

#1f1f5f · ΔE 3.1

Tritanopia

#1f5755 · ΔE 30.9

Achromatopsia

#2b2b2b · ΔE 24.7

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #1f1f6f;
Tailwind (arbitrary value)
bg-[#1f1f6f]

Related colors

Navy #000080
Lavender #e6e6fa
Blue #0000ff
Dark Blue #00008b
Ghost White #f8f8ff
Medium Blue #0000cd

Frequently asked questions

#1f1f6f (#1f1f6f) is rgb(31, 31, 111) in RGB.

No, #1f1f6f is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #1f1f6f, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.