#15178F#15178F
#15178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.185 H 268.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #15178F |
|---|---|
| RGB | rgb(21, 23, 143) |
| HSL | hsl(239, 74%, 32%) |
| HSV | hsv(239, 85%, 56%) |
| CMYK | cmyk(85.3%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(19.03, 43.23, -64.03) |
| CIE-LCH | lch(19.03, 77.25, 304.03°) |
| OKLab | oklab(32.08% -0.0034 -0.1854) |
| OKLCH | oklch(32.08% 0.185 268.9) |
| XYZ | xyz(5.5719, 2.7547, 26.2193) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.65
Cobalt Blue
#030AA7
ΔE00 3.55
Darkblue
#00008B
ΔE00 3.63
Royal Blue (survey)
#0504AA
ΔE00 4.12
Navy
#000080
ΔE00 4.42
Midnight Blue
#191970
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#15178F #8F8D15
analogous
#15548F #15178F #50158F
triadic
#15178F #8F1517 #178F15
tetradic
#15178F #8F1554 #8F8D15 #158F50
square
#15178F #8F1554 #8F8D15 #158F50
split-complementary
#15178F #8F5015 #548F15
monochromatic
#050624 #0D0E5A #15178F #1D20C4 #3C3FE2
Accessibility & contrast
On white
13.54
#15178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#15178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #15178F
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##15178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##15178F | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #15178f; /* rgb */ color: rgb(21, 23, 143); /* oklch */ color: oklch(32.1% 0.185 268.9);
Tailwind
colors: {
custom: {
50: '#6e58b1',
500: '#15178f',
950: '#000000',
},
}SCSS
$custom: #15178f; $custom-light: #6e58b1; $custom-dark: #000000;
JSON
{
"hex": "#15178f",
"rgb": {
"r": 21,
"g": 23,
"b": 143
},
"hsl": {
"h": 239.016,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.32079,
"c": 0.18543,
"h": 268.9
},
"luminance": 0.02755
}Semantic roles & 50–950 ramp
primary
#15178F
secondary
#C2C03E
accent
#EE37F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880