#18127F#18127F
#18127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.169 H 271.6°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).
Color values
| HEX | #18127F |
|---|---|
| RGB | rgb(24, 18, 127) |
| HSL | hsl(243, 75%, 28%) |
| HSV | hsv(243, 86%, 50%) |
| CMYK | cmyk(81.1%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.30, 40.62, -58.49) |
| CIE-LCH | lch(16.30, 71.21, 304.78°) |
| OKLab | oklab(29.64% 0.0047 -0.1692) |
| OKLCH | oklch(29.64% 0.169 271.6) |
| XYZ | xyz(4.4225, 2.1586, 20.2581) |
| Luminance | 0.0216 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.03
Navy
#000080
ΔE00 3.04
Midnight Blue
#191970
ΔE00 3.13
Darkblue
#00008B
ΔE00 3.22
Dark Royal Blue
#02066F
ΔE00 3.36
Deep Blue
#040273
ΔE00 3.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18127F #797F12
analogous
#12427F #18127F #4E127F
triadic
#18127F #7F1812 #127F18
tetradic
#18127F #7F1242 #797F12 #127F4E
square
#18127F #7F1242 #797F12 #127F4E
split-complementary
#18127F #7F4E12 #427F12
monochromatic
#05041B #0E0A49 #18127F #221AB5 #352BE1
Accessibility & contrast
On white
14.67
#18127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#18127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18127F
14.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18127F | 1.00 | 14.67 | 1.43 | 14.67 |
| #FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18127f; /* rgb */ color: rgb(24, 18, 127); /* oklch */ color: oklch(29.6% 0.169 271.6);
Tailwind
colors: {
custom: {
50: '#6a54a5',
500: '#18127f',
950: '#000000',
},
}SCSS
$custom: #18127f; $custom-light: #6a54a5; $custom-dark: #000000;
JSON
{
"hex": "#18127f",
"rgb": {
"r": 24,
"g": 18,
"b": 127
},
"hsl": {
"h": 243.303,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29638,
"c": 0.16931,
"h": 271.6
},
"luminance": 0.02159
}Semantic roles & 50–950 ramp
primary
#18127F
secondary
#AEB538
accent
#F236E7
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F