#18127B#18127B
#18127B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.164 H 272.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).
Color values
| HEX | #18127B |
|---|---|
| RGB | rgb(24, 18, 123) |
| HSL | hsl(243, 74%, 28%) |
| HSV | hsv(243, 85%, 48%) |
| CMYK | cmyk(80.5%, 85.4%, 0%, 51.8%) |
| CIE-LAB | lab(15.78, 39.32, -56.80) |
| CIE-LCH | lch(15.78, 69.08, 304.69°) |
| OKLab | oklab(29.13% 0.0058 -0.1643) |
| OKLCH | oklch(29.13% 0.164 272) |
| XYZ | xyz(4.1669, 2.0564, 18.9124) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Dark Royal Blue
#02066F
ΔE00 2.99
Deep Blue
#040273
ΔE00 3.16
Navy
#000080
ΔE00 3.17
Royal
#0C1793
ΔE00 3.59
Darkblue
#00008B
ΔE00 3.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18127B #757B12
analogous
#12407B #18127B #4D127B
triadic
#18127B #7B1812 #127B18
tetradic
#18127B #7B1240 #757B12 #127B4D
square
#18127B #7B1240 #757B12 #127B4D
split-complementary
#18127B #7B4D12 #407B12
monochromatic
#05041B #0E0A46 #18127B #221AB0 #3228E0
Accessibility & contrast
On white
14.88
#18127B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#18127B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18127B
14.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18127B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18127B | 1.00 | 14.88 | 1.41 | 14.88 |
| #FFFFFF | 14.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C7E
Deuteranopia (green-blind)
#002279
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #18127b; /* rgb */ color: rgb(24, 18, 123); /* oklch */ color: oklch(29.1% 0.164 272.0);
Tailwind
colors: {
custom: {
50: '#6953a2',
500: '#18127b',
950: '#000000',
},
}SCSS
$custom: #18127b; $custom-light: #6953a2; $custom-dark: #000000;
JSON
{
"hex": "#18127b",
"rgb": {
"r": 24,
"g": 18,
"b": 123
},
"hsl": {
"h": 243.429,
"s": 74.468,
"l": 27.647
},
"oklch": {
"l": 0.29131,
"c": 0.16444,
"h": 272
},
"luminance": 0.02057
}Semantic roles & 50–950 ramp
primary
#18127B
secondary
#AAB138
accent
#F137E6
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F