#15157F#15157F
#15157F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 270.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #15157F |
|---|---|
| RGB | rgb(21, 21, 127) |
| HSL | hsl(240, 72%, 29%) |
| HSV | hsv(240, 83%, 50%) |
| CMYK | cmyk(83.5%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(16.64, 38.94, -57.93) |
| CIE-LCH | lch(16.64, 69.80, 303.91°) |
| OKLab | oklab(29.83% 0.0004 -0.1677) |
| OKLCH | oklch(29.83% 0.168 270.1) |
| XYZ | xyz(4.4069, 2.2276, 20.2723) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Royal
#0C1793
ΔE00 2.88
Navy
#000080
ΔE00 3.59
Dark Royal Blue
#02066F
ΔE00 3.68
Darkblue
#00008B
ΔE00 3.72
Deep Blue
#040273
ΔE00 3.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#15157F #7F7F15
analogous
#154A7F #15157F #4A157F
triadic
#15157F #7F1515 #157F15
tetradic
#15157F #7F154A #7F7F15 #157F4A
square
#15157F #7F154A #7F7F15 #157F4A
split-complementary
#15157F #7F4A15 #4A7F15
monochromatic
#04041A #0C0C4A #15157F #1E1EB4 #3131DD
Accessibility & contrast
On white
14.53
#15157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#15157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #15157F
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##15157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##15157F | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #15157f; /* rgb */ color: rgb(21, 21, 127); /* oklch */ color: oklch(29.8% 0.168 270.1);
Tailwind
colors: {
custom: {
50: '#6955a5',
500: '#15157f',
950: '#000000',
},
}SCSS
$custom: #15157f; $custom-light: #6955a5; $custom-dark: #000000;
JSON
{
"hex": "#15157f",
"rgb": {
"r": 21,
"g": 21,
"b": 127
},
"hsl": {
"h": 240,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.29827,
"c": 0.16773,
"h": 270.1
},
"luminance": 0.02228
}Semantic roles & 50–950 ramp
primary
#15157F
secondary
#B4B43C
accent
#EE39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F