#15127F#15127F
#15127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.170 H 270.4°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).
Color values
| HEX | #15127F |
|---|---|
| RGB | rgb(21, 18, 127) |
| HSL | hsl(242, 75%, 28%) |
| HSV | hsv(242, 86%, 50%) |
| CMYK | cmyk(83.5%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.12, 40.45, -58.78) |
| CIE-LCH | lch(16.12, 71.36, 304.53°) |
| OKLab | oklab(29.47% 0.0011 -0.1701) |
| OKLCH | oklch(29.47% 0.17 270.4) |
| XYZ | xyz(4.3550, 2.1238, 20.2550) |
| Luminance | 0.0212 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.99
Royal
#0C1793
ΔE00 3.00
Midnight Blue
#191970
ΔE00 3.11
Darkblue
#00008B
ΔE00 3.19
Dark Royal Blue
#02066F
ΔE00 3.29
Deep Blue
#040273
ΔE00 3.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#15127F #7C7F12
analogous
#12457F #15127F #4B127F
triadic
#15127F #7F1512 #127F15
tetradic
#15127F #7F1245 #7C7F12 #127F4B
square
#15127F #7F1245 #7C7F12 #127F4B
split-complementary
#15127F #7F4B12 #457F12
monochromatic
#04041B #0C0A49 #15127F #1E1AB5 #302BE1
Accessibility & contrast
On white
14.74
#15127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#15127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #15127F
14.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##15127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##15127F | 1.00 | 14.74 | 1.42 | 14.74 |
| #FFFFFF | 14.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #15127f; /* rgb */ color: rgb(21, 18, 127); /* oklch */ color: oklch(29.5% 0.170 270.4);
Tailwind
colors: {
custom: {
50: '#6a54a5',
500: '#15127f',
950: '#000000',
},
}SCSS
$custom: #15127f; $custom-light: #6a54a5; $custom-dark: #000000;
JSON
{
"hex": "#15127f",
"rgb": {
"r": 21,
"g": 18,
"b": 127
},
"hsl": {
"h": 241.651,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.2947,
"c": 0.17014,
"h": 270.4
},
"luminance": 0.02124
}Semantic roles & 50–950 ramp
primary
#15127F
secondary
#B1B538
accent
#F236ED
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F