#18127E#18127E
#18127E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.168 H 271.7°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).
Color values
| HEX | #18127E |
|---|---|
| RGB | rgb(24, 18, 126) |
| HSL | hsl(243, 75%, 28%) |
| HSV | hsv(243, 86%, 49%) |
| CMYK | cmyk(81%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(16.17, 40.29, -58.07) |
| CIE-LCH | lch(16.17, 70.68, 304.76°) |
| OKLab | oklab(29.51% 0.005 -0.168) |
| OKLCH | oklch(29.51% 0.168 271.7) |
| XYZ | xyz(4.3576, 2.1327, 19.9166) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.01
Navy
#000080
ΔE00 3.06
Royal
#0C1793
ΔE00 3.16
Dark Royal Blue
#02066F
ΔE00 3.26
Darkblue
#00008B
ΔE00 3.31
Deep Blue
#040273
ΔE00 3.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18127E #787E12
analogous
#12427E #18127E #4E127E
triadic
#18127E #7E1812 #127E18
tetradic
#18127E #7E1242 #787E12 #127E4E
square
#18127E #7E1242 #787E12 #127E4E
split-complementary
#18127E #7E4E12 #427E12
monochromatic
#05041B #0E0A48 #18127E #221AB4 #342AE1
Accessibility & contrast
On white
14.72
#18127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#18127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18127E
14.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18127E | 1.00 | 14.72 | 1.43 | 14.72 |
| #FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18127e; /* rgb */ color: rgb(24, 18, 126); /* oklch */ color: oklch(29.5% 0.168 271.7);
Tailwind
colors: {
custom: {
50: '#6a54a5',
500: '#18127e',
950: '#000000',
},
}SCSS
$custom: #18127e; $custom-light: #6a54a5; $custom-dark: #000000;
JSON
{
"hex": "#18127e",
"rgb": {
"r": 24,
"g": 18,
"b": 126
},
"hsl": {
"h": 243.333,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.29511,
"c": 0.16809,
"h": 271.7
},
"luminance": 0.02133
}Semantic roles & 50–950 ramp
primary
#18127E
secondary
#ADB438
accent
#F236E7
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F