#23158F#23158F
#23158F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.183 H 274.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #23158F |
|---|---|
| RGB | rgb(35, 21, 143) |
| HSL | hsl(247, 74%, 32%) |
| HSV | hsv(247, 85%, 56%) |
| CMYK | cmyk(75.5%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.54, 44.98, -63.16) |
| CIE-LCH | lch(19.54, 77.54, 305.46°) |
| OKLab | oklab(32.65% 0.0142 -0.1826) |
| OKLCH | oklch(32.65% 0.183 274.4) |
| XYZ | xyz(5.9176, 2.8762, 26.2246) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.64
Cobalt Blue
#030AA7
ΔE00 3.50
Darkblue
#00008B
ΔE00 3.61
Royal Blue (survey)
#0504AA
ΔE00 3.97
Indigo (survey)
#380282
ΔE00 4.19
Navy
#000080
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#23158F #818F15
analogous
#15448F #23158F #60158F
triadic
#23158F #8F2315 #158F23
tetradic
#23158F #8F1544 #818F15 #158F60
square
#23158F #8F1544 #818F15 #158F60
split-complementary
#23158F #8F6015 #448F15
monochromatic
#090524 #160D5A #23158F #301DC4 #4F3CE2
Accessibility & contrast
On white
13.33
#23158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#23158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #23158F
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##23158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##23158F | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #23158f; /* rgb */ color: rgb(35, 21, 143); /* oklch */ color: oklch(32.7% 0.183 274.4);
Tailwind
colors: {
custom: {
50: '#7257b1',
500: '#23158f',
950: '#000000',
},
}SCSS
$custom: #23158f; $custom-light: #7257b1; $custom-dark: #000000;
JSON
{
"hex": "#23158f",
"rgb": {
"r": 35,
"g": 21,
"b": 143
},
"hsl": {
"h": 246.885,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.32652,
"c": 0.18315,
"h": 274.4
},
"luminance": 0.02877
}Semantic roles & 50–950 ramp
primary
#23158F
secondary
#B3C23E
accent
#F137DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880