#28137F#28137F
#28137F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.164 H 279.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #28137F |
|---|---|
| RGB | rgb(40, 19, 127) |
| HSL | hsl(252, 74%, 29%) |
| HSV | hsv(252, 85%, 50%) |
| CMYK | cmyk(68.5%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(17.69, 41.37, -56.15) |
| CIE-LCH | lch(17.69, 69.74, 306.38°) |
| OKLab | oklab(30.91% 0.0275 -0.1621) |
| OKLCH | oklch(30.91% 0.164 279.6) |
| XYZ | xyz(4.9375, 2.4488, 20.2870) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.20
Midnight Blue
#191970
ΔE00 3.60
Royal
#0C1793
ΔE00 3.62
Navy
#000080
ΔE00 3.94
Darkblue
#00008B
ΔE00 3.97
Deep Blue
#040273
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28137F #6A7F13
analogous
#13347F #28137F #5E137F
triadic
#28137F #7F2813 #137F28
tetradic
#28137F #7F1334 #6A7F13 #137F5E
square
#28137F #7F1334 #6A7F13 #137F5E
split-complementary
#28137F #7F5E13 #347F13
monochromatic
#08041B #170B4A #28137F #391BB4 #502DE0
Accessibility & contrast
On white
14.10
#28137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#28137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28137F
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28137F | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #28137f; /* rgb */ color: rgb(40, 19, 127); /* oklch */ color: oklch(30.9% 0.164 279.6);
Tailwind
colors: {
custom: {
50: '#7055a5',
500: '#28137f',
950: '#000000',
},
}SCSS
$custom: #28137f; $custom-light: #7055a5; $custom-dark: #000000;
JSON
{
"hex": "#28137f",
"rgb": {
"r": 40,
"g": 19,
"b": 127
},
"hsl": {
"h": 251.667,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.30911,
"c": 0.16444,
"h": 279.6
},
"luminance": 0.02449
}Semantic roles & 50–950 ramp
primary
#28137F
secondary
#9DB439
accent
#F137CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F