#23157C#23157C
#23157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.160 H 277.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #23157C |
|---|---|
| RGB | rgb(35, 21, 124) |
| HSL | hsl(248, 71%, 28%) |
| HSV | hsv(248, 83%, 49%) |
| CMYK | cmyk(71.8%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(17.22, 39.00, -55.03) |
| CIE-LCH | lch(17.22, 67.45, 305.33°) |
| OKLab | oklab(30.37% 0.0198 -0.159) |
| OKLCH | oklch(30.37% 0.16 277.1) |
| XYZ | xyz(4.5982, 2.3485, 19.2759) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.72
Royal
#0C1793
ΔE00 3.65
Dark Royal Blue
#02066F
ΔE00 3.95
Navy
#000080
ΔE00 4.02
Indigo (survey)
#380282
ΔE00 4.06
Deep Blue
#040273
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#23157C #6E7C15
analogous
#153A7C #23157C #56157C
triadic
#23157C #7C2315 #157C23
tetradic
#23157C #7C153A #6E7C15 #157C56
square
#23157C #7C153A #6E7C15 #157C56
split-complementary
#23157C #7C5615 #3A7C15
monochromatic
#07041A #140C48 #23157C #321EB0 #4730DC
Accessibility & contrast
On white
14.29
#23157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#23157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #23157C
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##23157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##23157C | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #23157c; /* rgb */ color: rgb(35, 21, 124); /* oklch */ color: oklch(30.4% 0.160 277.1);
Tailwind
colors: {
custom: {
50: '#6d56a3',
500: '#23157c',
950: '#000000',
},
}SCSS
$custom: #23157c; $custom-light: #6d56a3; $custom-dark: #000000;
JSON
{
"hex": "#23157c",
"rgb": {
"r": 35,
"g": 21,
"b": 124
},
"hsl": {
"h": 248.155,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.30374,
"c": 0.16024,
"h": 277.1
},
"luminance": 0.02349
}Semantic roles & 50–950 ramp
primary
#23157C
secondary
#A1B13C
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F