#17157C#17157C
#17157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 271.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #17157C |
|---|---|
| RGB | rgb(23, 21, 124) |
| HSL | hsl(241, 71%, 28%) |
| HSV | hsv(241, 83%, 49%) |
| CMYK | cmyk(81.5%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(16.37, 38.05, -56.46) |
| CIE-LCH | lch(16.37, 68.08, 303.98°) |
| OKLab | oklab(29.56% 0.0034 -0.1634) |
| OKLCH | oklch(29.56% 0.163 271.2) |
| XYZ | xyz(4.2584, 2.1732, 19.2599) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.34
Royal
#0C1793
ΔE00 3.34
Dark Royal Blue
#02066F
ΔE00 3.48
Navy
#000080
ΔE00 3.70
Deep Blue
#040273
ΔE00 3.74
Darkblue
#00008B
ΔE00 3.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17157C #7A7C15
analogous
#15467C #17157C #4A157C
triadic
#17157C #7C1715 #157C17
tetradic
#17157C #7C1546 #7A7C15 #157C4A
square
#17157C #7C1546 #7A7C15 #157C4A
split-complementary
#17157C #7C4A15 #467C15
monochromatic
#05041A #0D0C48 #17157C #211EB0 #3330DC
Accessibility & contrast
On white
14.64
#17157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#17157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17157C
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17157C | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #17157c; /* rgb */ color: rgb(23, 21, 124); /* oklch */ color: oklch(29.6% 0.163 271.2);
Tailwind
colors: {
custom: {
50: '#6955a3',
500: '#17157c',
950: '#000000',
},
}SCSS
$custom: #17157c; $custom-light: #6955a3; $custom-dark: #000000;
JSON
{
"hex": "#17157c",
"rgb": {
"r": 23,
"g": 21,
"b": 124
},
"hsl": {
"h": 241.165,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.29562,
"c": 0.16347,
"h": 271.2
},
"luminance": 0.02174
}Semantic roles & 50–950 ramp
primary
#17157C
secondary
#AFB13C
accent
#EE3AEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F