#28159E#28159E
#28159E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.199 H 274.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #28159E |
|---|---|
| RGB | rgb(40, 21, 158) |
| HSL | hsl(248, 77%, 35%) |
| HSV | hsv(248, 87%, 62%) |
| CMYK | cmyk(74.7%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(21.78, 49.81, -68.69) |
| CIE-LCH | lch(21.78, 84.84, 305.95°) |
| OKLab | oklab(34.82% 0.0166 -0.1985) |
| OKLCH | oklch(34.82% 0.199 274.8) |
| XYZ | xyz(7.3128, 3.4553, 32.6227) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.34
Royal
#0C1793
ΔE00 2.64
Royal Blue (survey)
#0504AA
ΔE00 2.71
Ultramarine
#2000B1
ΔE00 2.97
Indigo Blue
#3A18B1
ΔE00 3.36
Darkblue
#00008B
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28159E #8B9E15
analogous
#15479E #28159E #6C159E
triadic
#28159E #9E2815 #159E28
tetradic
#28159E #9E1547 #8B9E15 #159E6C
square
#28159E #9E1547 #8B9E15 #159E6C
split-complementary
#28159E #9E6C15 #479E15
monochromatic
#0D0732 #1A0E68 #28159E #361CD4 #5D47E7
Accessibility & contrast
On white
12.42
#28159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#28159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28159E
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28159E | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #28159e; /* rgb */ color: rgb(40, 21, 158); /* oklch */ color: oklch(34.8% 0.199 274.8);
Tailwind
colors: {
custom: {
50: '#7759bc',
500: '#28159e',
950: '#000000',
},
}SCSS
$custom: #28159e; $custom-light: #7759bc; $custom-dark: #000000;
JSON
{
"hex": "#28159e",
"rgb": {
"r": 40,
"g": 21,
"b": 158
},
"hsl": {
"h": 248.321,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.34822,
"c": 0.19921,
"h": 274.8
},
"luminance": 0.03456
}Semantic roles & 50–950 ramp
primary
#28159E
secondary
#B6C747
accent
#F335D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981