Skip to content
Kolorvia
#181f52

Color #181f52

A moderately saturated dark blue.

Conversions

HEX
#181f52
RGB
rgb(24, 31, 82)
HSL
hsl(232.8, 54.7%, 20.8%)
HSV / HSB
hsv(232.8, 70.7%, 32.2%)
CMYK
cmyk(70.7%, 62.2%, 0%, 67.8%)
LAB
lab(14.31, 15.84, -32.21)
LCH
lch(14.31, 35.89, 296.19)
OKLCH
oklch(26.7%, 0.0927, 272.6)
HWB
hwb(232.8, 9.4%, 67.8%)

Harmony colors

Complementary

#524b18

Analogous

#183c52
#181f52
#2e1852

Triadic

#181f52
#52181f
#1f5218

Split-complementary

#181f52
#522e18
#3c5218

Tetradic

#181f52
#4b1852
#524b18
#1f5218

Square

#181f52
#52183c
#524b18
#18522e

Shades

Color #181f52 mixed toward black.

#141a44
#101537
#0c0f29
#080a1b
#04050e

Tints

Color #181f52 mixed toward white.

#273386
#3746ba
#6370d1
#97a0e1
#cbcff0

Tones

Color #181f52 mixed toward gray.

#1d234d
#222648
#272a44
#2b2e3f
#30313a

Accessibility

Aa White text on this color
15.48:1
Aa Black text on this color
1.36:1

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

Under color vision deficiencies

Protanopia

#1b1b49 · ΔE 2.4

Deuteranopia

#1b1a47 · ΔE 2.9

Tritanopia

#184240 · ΔE 26.5

Achromatopsia

#242424 · ΔE 20.7

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

Code

CSS
background-color: #181f52;
Tailwind (arbitrary value)
bg-[#181f52]

Related colors

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

Frequently asked questions

#181f52 (#181f52) is rgb(24, 31, 82) in RGB.

No, #181f52 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 #181f52, 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.