#18137F#18137F
#18137F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.169 H 271.5°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).
Color values
| HEX | #18137F |
|---|---|
| RGB | rgb(24, 19, 127) |
| HSL | hsl(243, 74%, 29%) |
| HSV | hsv(243, 85%, 50%) |
| CMYK | cmyk(81.1%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(16.46, 40.14, -58.22) |
| CIE-LCH | lch(16.46, 70.71, 304.58°) |
| OKLab | oklab(29.75% 0.0045 -0.1685) |
| OKLCH | oklch(29.75% 0.169 271.5) |
| XYZ | xyz(4.4390, 2.1917, 20.2637) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.97
Midnight Blue
#191970
ΔE00 3.00
Navy
#000080
ΔE00 3.23
Darkblue
#00008B
ΔE00 3.38
Dark Royal Blue
#02066F
ΔE00 3.48
Deep Blue
#040273
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18137F #7A7F13
analogous
#13447F #18137F #4E137F
triadic
#18137F #7F1813 #137F18
tetradic
#18137F #7F1344 #7A7F13 #137F4E
square
#18137F #7F1344 #7A7F13 #137F4E
split-complementary
#18137F #7F4E13 #447F13
monochromatic
#05041B #0E0B4A #18137F #221BB4 #352DE0
Accessibility & contrast
On white
14.60
#18137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#18137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18137F
14.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18137F | 1.00 | 14.60 | 1.44 | 14.60 |
| #FFFFFF | 14.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18137f; /* rgb */ color: rgb(24, 19, 127); /* oklch */ color: oklch(29.8% 0.169 271.5);
Tailwind
colors: {
custom: {
50: '#6a54a5',
500: '#18137f',
950: '#000000',
},
}SCSS
$custom: #18137f; $custom-light: #6a54a5; $custom-dark: #000000;
JSON
{
"hex": "#18137f",
"rgb": {
"r": 24,
"g": 19,
"b": 127
},
"hsl": {
"h": 242.778,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.29751,
"c": 0.16853,
"h": 271.5
},
"luminance": 0.02192
}Semantic roles & 50–950 ramp
primary
#18137F
secondary
#AFB439
accent
#F137E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F