#28158F#28158F
#28158F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.182 H 276.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #28158F |
|---|---|
| RGB | rgb(40, 21, 143) |
| HSL | hsl(249, 74%, 32%) |
| HSV | hsv(249, 85%, 56%) |
| CMYK | cmyk(72%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.92, 45.34, -62.51) |
| CIE-LCH | lch(19.92, 77.22, 305.95°) |
| OKLab | oklab(33.01% 0.0214 -0.1806) |
| OKLCH | oklch(33.01% 0.182 276.8) |
| XYZ | xyz(6.0995, 2.9700, 26.2331) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.10
Cobalt Blue
#030AA7
ΔE00 3.66
Darkblue
#00008B
ΔE00 3.86
Indigo (survey)
#380282
ΔE00 3.87
Royal Blue (survey)
#0504AA
ΔE00 4.09
Navy
#000080
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28158F #7C8F15
analogous
#153F8F #28158F #65158F
triadic
#28158F #8F2815 #158F28
tetradic
#28158F #8F153F #7C8F15 #158F65
square
#28158F #8F153F #7C8F15 #158F65
split-complementary
#28158F #8F6515 #3F8F15
monochromatic
#0A0524 #190D5A #28158F #371DC4 #563CE2
Accessibility & contrast
On white
13.17
#28158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#28158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28158F
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28158F | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #28158f; /* rgb */ color: rgb(40, 21, 143); /* oklch */ color: oklch(33.0% 0.182 276.8);
Tailwind
colors: {
custom: {
50: '#7458b1',
500: '#28158f',
950: '#000000',
},
}SCSS
$custom: #28158f; $custom-light: #7458b1; $custom-dark: #000000;
JSON
{
"hex": "#28158f",
"rgb": {
"r": 40,
"g": 21,
"b": 143
},
"hsl": {
"h": 249.344,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.33014,
"c": 0.18188,
"h": 276.8
},
"luminance": 0.02971
}Semantic roles & 50–950 ramp
primary
#28158F
secondary
#ADC23E
accent
#F137D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880