#28147E#28147E
#28147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 279.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).
Color values
| HEX | #28147E |
|---|---|
| RGB | rgb(40, 20, 126) |
| HSL | hsl(251, 73%, 29%) |
| HSV | hsv(251, 84%, 49%) |
| CMYK | cmyk(68.3%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(17.72, 40.60, -55.45) |
| CIE-LCH | lch(17.72, 68.72, 306.21°) |
| OKLab | oklab(30.9% 0.0274 -0.1601) |
| OKLCH | oklch(30.9% 0.162 279.7) |
| XYZ | xyz(4.8899, 2.4574, 19.9513) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.38
Midnight Blue
#191970
ΔE00 3.39
Royal
#0C1793
ΔE00 3.70
Navy
#000080
ΔE00 4.10
Darkblue
#00008B
ΔE00 4.18
Deep Blue
#040273
ΔE00 4.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28147E #6A7E14
analogous
#14357E #28147E #5D147E
triadic
#28147E #7E2814 #147E28
tetradic
#28147E #7E1435 #6A7E14 #147E5D
square
#28147E #7E1435 #6A7E14 #147E5D
split-complementary
#28147E #7E5D14 #357E14
monochromatic
#08041A #170C49 #28147E #391CB3 #502EDE
Accessibility & contrast
On white
14.08
#28147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#28147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28147E
14.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28147E | 1.00 | 14.08 | 1.49 | 14.08 |
| #FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #28147e; /* rgb */ color: rgb(40, 20, 126); /* oklch */ color: oklch(30.9% 0.162 279.7);
Tailwind
colors: {
custom: {
50: '#7056a5',
500: '#28147e',
950: '#000000',
},
}SCSS
$custom: #28147e; $custom-light: #7056a5; $custom-dark: #000000;
JSON
{
"hex": "#28147e",
"rgb": {
"r": 40,
"g": 20,
"b": 126
},
"hsl": {
"h": 251.321,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.30904,
"c": 0.16242,
"h": 279.7
},
"luminance": 0.02458
}Semantic roles & 50–950 ramp
primary
#28147E
secondary
#9DB33A
accent
#EF38CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F