#181F95#181F95
#181F95 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.185 H 269.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #181F95 |
|---|---|
| RGB | rgb(24, 31, 149) |
| HSL | hsl(237, 72%, 34%) |
| HSV | hsv(237, 84%, 58%) |
| CMYK | cmyk(83.9%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(21.37, 41.16, -63.87) |
| CIE-LCH | lch(21.37, 75.98, 302.80°) |
| OKLab | oklab(33.96% -0.0033 -0.185) |
| OKLCH | oklch(33.96% 0.185 269) |
| XYZ | xyz(6.2896, 3.3433, 28.7418) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.77
Cobalt Blue
#030AA7
ΔE00 4.04
Royal Blue (survey)
#0504AA
ΔE00 4.66
Indigo Blue
#3A18B1
ΔE00 5.39
Ultramarine
#2000B1
ΔE00 5.43
Darkblue
#00008B
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F95 #958E18
analogous
#185E95 #181F95 #501895
triadic
#181F95 #95181F #1F9518
tetradic
#181F95 #95185E #958E18 #189550
square
#181F95 #95185E #958E18 #189550
split-complementary
#181F95 #955018 #5E9518
monochromatic
#07092C #101460 #181F95 #202ACA #464FE1
Accessibility & contrast
On white
12.58
#181F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#181F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F95
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F95 | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #181f95; /* rgb */ color: rgb(24, 31, 149); /* oklch */ color: oklch(34.0% 0.185 269.0);
Tailwind
colors: {
custom: {
50: '#6f5db5',
500: '#181f95',
950: '#000000',
},
}SCSS
$custom: #181f95; $custom-light: #6f5db5; $custom-dark: #000000;
JSON
{
"hex": "#181f95",
"rgb": {
"r": 24,
"g": 31,
"b": 149
},
"hsl": {
"h": 236.64,
"s": 72.254,
"l": 33.922
},
"oklch": {
"l": 0.33964,
"c": 0.18506,
"h": 269
},
"luminance": 0.03344
}Semantic roles & 50–950 ramp
primary
#181F95
secondary
#C2BB46
accent
#E539EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980