#18148F#18148F
#18148F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.187 H 270.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).
Color values
| HEX | #18148F |
|---|---|
| RGB | rgb(24, 20, 143) |
| HSL | hsl(242, 75%, 32%) |
| HSV | hsv(242, 86%, 56%) |
| CMYK | cmyk(83.2%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(18.70, 44.79, -64.57) |
| CIE-LCH | lch(18.70, 78.59, 304.75°) |
| OKLab | oklab(31.89% 0.0003 -0.1869) |
| OKLCH | oklch(31.89% 0.187 270.1) |
| XYZ | xyz(5.5831, 2.6770, 26.2037) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.01
Darkblue
#00008B
ΔE00 3.13
Cobalt Blue
#030AA7
ΔE00 3.32
Royal Blue (survey)
#0504AA
ΔE00 3.84
Navy
#000080
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18148F #8B8F14
analogous
#144E8F #18148F #56148F
triadic
#18148F #8F1814 #148F18
tetradic
#18148F #8F144E #8B8F14 #148F56
square
#18148F #8F144E #8B8F14 #148F56
split-complementary
#18148F #8F5614 #4E8F14
monochromatic
#060524 #0F0C59 #18148F #211CC5 #3F3AE3
Accessibility & contrast
On white
13.68
#18148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18148F
13.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18148F | 1.00 | 13.68 | 1.54 | 13.68 |
| #FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18148f; /* rgb */ color: rgb(24, 20, 143); /* oklch */ color: oklch(31.9% 0.187 270.1);
Tailwind
colors: {
custom: {
50: '#6f56b1',
500: '#18148f',
950: '#000000',
},
}SCSS
$custom: #18148f; $custom-light: #6f56b1; $custom-dark: #000000;
JSON
{
"hex": "#18148f",
"rgb": {
"r": 24,
"g": 20,
"b": 143
},
"hsl": {
"h": 241.951,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.3189,
"c": 0.18688,
"h": 270.1
},
"luminance": 0.02678
}Semantic roles & 50–950 ramp
primary
#18148F
secondary
#BEC33C
accent
#F236EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880