#181A7F#181A7F
#181A7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.162 H 270.8°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).
Color values
| HEX | #181A7F |
|---|---|
| RGB | rgb(24, 26, 127) |
| HSL | hsl(239, 68%, 30%) |
| HSV | hsv(239, 81%, 50%) |
| CMYK | cmyk(81.1%, 79.5%, 0%, 50.2%) |
| CIE-LAB | lab(17.76, 36.38, -56.07) |
| CIE-LCH | lch(17.76, 66.83, 302.98°) |
| OKLab | oklab(30.66% 0.0023 -0.1624) |
| OKLCH | oklch(30.66% 0.162 270.8) |
| XYZ | xyz(4.5755, 2.4648, 20.3092) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.39
Royal
#0C1793
ΔE00 3.03
Dark Royal Blue
#02066F
ΔE00 4.60
Navy
#000080
ΔE00 4.74
Darkblue
#00008B
ΔE00 4.77
Deep Blue
#040273
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181A7F #7F7D18
analogous
#184E7F #181A7F #4A187F
triadic
#181A7F #7F181A #1A7F18
tetradic
#181A7F #7F184E #7F7D18 #187F4A
square
#181A7F #7F184E #7F7D18 #187F4A
split-complementary
#181A7F #7F4A18 #4E7F18
monochromatic
#05051A #0E0F4C #181A7F #2225B2 #383BD9
Accessibility & contrast
On white
14.07
#181A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#181A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181A7F
14.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181A7F | 1.00 | 14.07 | 1.49 | 14.07 |
| #FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #181a7f; /* rgb */ color: rgb(24, 26, 127); /* oklch */ color: oklch(30.7% 0.162 270.8);
Tailwind
colors: {
custom: {
50: '#6a58a5',
500: '#181a7f',
950: '#000000',
},
}SCSS
$custom: #181a7f; $custom-light: #6a58a5; $custom-dark: #000000;
JSON
{
"hex": "#181a7f",
"rgb": {
"r": 24,
"g": 26,
"b": 127
},
"hsl": {
"h": 238.835,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30656,
"c": 0.16238,
"h": 270.8
},
"luminance": 0.02465
}Semantic roles & 50–950 ramp
primary
#181A7F
secondary
#B3B13F
accent
#E83DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F