Skip to content
Kolorvia
#1f2a4d

Color #1f2a4d

A moderately saturated dark blue.

Conversions

HEX
#1f2a4d
RGB
rgb(31, 42, 77)
HSL
hsl(225.7, 42.6%, 21.2%)
HSV / HSB
hsv(225.7, 59.7%, 30.2%)
CMYK
cmyk(59.7%, 45.5%, 0%, 69.8%)
LAB
lab(17.84, 7.3, -23.11)
LCH
lch(17.84, 24.24, 287.53)
OKLCH
oklch(29.4%, 0.0656, 268.95)
HWB
hwb(225.7, 12.2%, 69.8%)

Harmony colors

Complementary

#4d421f

Analogous

#1f414d
#1f2a4d
#2b1f4d

Triadic

#1f2a4d
#4d1f2a
#2a4d1f

Split-complementary

#1f2a4d
#4d2b1f
#414d1f

Tetradic

#1f2a4d
#421f4d
#4d421f
#2a4d1f

Square

#1f2a4d
#4d1f41
#4d421f
#1f4d2b

Shades

Color #1f2a4d mixed toward black.

#1a2340
#151c33
#101527
#0a0e1a
#05070d

Tints

Color #1f2a4d mixed toward white.

#32447d
#455ead
#7084c5
#9fadd9
#cfd6ec

Tones

Color #1f2a4d mixed toward gray.

#232c49
#272e45
#2b3042
#2e323e
#32343a

Accessibility

Aa White text on this color
14.03:1
Aa Black text on this color
1.5:1

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

Under color vision deficiencies

Protanopia

#242446 · ΔE 3.8

Deuteranopia

#242345 · ΔE 4.2

Tritanopia

#20413f · ΔE 22.6

Achromatopsia

#2c2c2c · ΔE 16.2

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

Code

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

Related colors

Royal Blue #4169e1
Cornflower Blue #6495ed
Light Steel Blue #b0c4de
Navy #000080
Lavender #e6e6fa
Blue #0000ff

Frequently asked questions

#1f2a4d (#1f2a4d) is rgb(31, 42, 77) in RGB.

No, #1f2a4d is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #1f2a4d, 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.