#181F7C#181F7C
#181F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.153 H 270.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).
Color values
| HEX | #181F7C |
|---|---|
| RGB | rgb(24, 31, 124) |
| HSL | hsl(236, 68%, 29%) |
| HSV | hsv(236, 81%, 49%) |
| CMYK | cmyk(80.6%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(18.49, 32.26, -52.95) |
| CIE-LCH | lch(18.49, 62.00, 301.35°) |
| OKLab | oklab(31.08% 0.0008 -0.1533) |
| OKLCH | oklch(31.08% 0.153 270.3) |
| XYZ | xyz(4.5035, 2.6289, 19.3350) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.28
Royal
#0C1793
ΔE00 4.08
Dark Royal Blue
#02066F
ΔE00 5.64
Deep Blue
#040273
ΔE00 6.12
Navy
#000080
ΔE00 6.17
Darkblue (survey)
#030764
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F7C #7C7518
analogous
#18517C #181F7C #43187C
triadic
#181F7C #7C181F #1F7C18
tetradic
#181F7C #7C1851 #7C7518 #187C43
square
#181F7C #7C1851 #7C7518 #187C43
split-complementary
#181F7C #7C4318 #517C18
monochromatic
#05061A #0E1249 #181F7C #222CAF #3642D8
Accessibility & contrast
On white
13.76
#181F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#181F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F7C
13.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F7C | 1.00 | 13.76 | 1.53 | 13.76 |
| #FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #181f7c; /* rgb */ color: rgb(24, 31, 124); /* oklch */ color: oklch(31.1% 0.153 270.3);
Tailwind
colors: {
custom: {
50: '#685ba3',
500: '#181f7c',
950: '#000000',
},
}SCSS
$custom: #181f7c; $custom-light: #685ba3; $custom-dark: #000000;
JSON
{
"hex": "#181f7c",
"rgb": {
"r": 24,
"g": 31,
"b": 124
},
"hsl": {
"h": 235.8,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.31076,
"c": 0.15333,
"h": 270.3
},
"luminance": 0.02629
}Semantic roles & 50–950 ramp
primary
#181F7C
secondary
#B1A93F
accent
#DE3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F