#181C7E#181C7E
#181C7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.159 H 270.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).
Color values
| HEX | #181C7E |
|---|---|
| RGB | rgb(24, 28, 126) |
| HSL | hsl(238, 68%, 29%) |
| HSV | hsv(238, 81%, 49%) |
| CMYK | cmyk(81%, 77.8%, 0%, 50.6%) |
| CIE-LAB | lab(18.06, 34.84, -54.94) |
| CIE-LCH | lch(18.06, 65.06, 302.38°) |
| OKLab | oklab(30.83% 0.0018 -0.1591) |
| OKLCH | oklch(30.83% 0.159 270.6) |
| XYZ | xyz(4.5566, 2.5305, 19.9829) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.25
Royal
#0C1793
ΔE00 3.37
Dark Royal Blue
#02066F
ΔE00 4.97
Navy
#000080
ΔE00 5.27
Darkblue
#00008B
ΔE00 5.32
Deep Blue
#040273
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181C7E #7E7A18
analogous
#184F7E #181C7E #47187E
triadic
#181C7E #7E181C #1C7E18
tetradic
#181C7E #7E184F #7E7A18 #187E47
square
#181C7E #7E184F #7E7A18 #187E47
split-complementary
#181C7E #7E4718 #4F7E18
monochromatic
#05061A #0E114B #181C7E #2227B1 #373ED9
Accessibility & contrast
On white
13.94
#181C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#181C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181C7E
13.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181C7E | 1.00 | 13.94 | 1.51 | 13.94 |
| #FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #181c7e; /* rgb */ color: rgb(24, 28, 126); /* oklch */ color: oklch(30.8% 0.159 270.6);
Tailwind
colors: {
custom: {
50: '#6959a5',
500: '#181c7e',
950: '#000000',
},
}SCSS
$custom: #181c7e; $custom-light: #6959a5; $custom-dark: #000000;
JSON
{
"hex": "#181c7e",
"rgb": {
"r": 24,
"g": 28,
"b": 126
},
"hsl": {
"h": 237.647,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30832,
"c": 0.15911,
"h": 270.6
},
"luminance": 0.02531
}Semantic roles & 50–950 ramp
primary
#181C7E
secondary
#B2AE3F
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F