#28156C#28156C
#28156C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.139 H 283.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).
Color values
| HEX | #28156C |
|---|---|
| RGB | rgb(40, 21, 108) |
| HSL | hsl(253, 67%, 25%) |
| HSV | hsv(253, 81%, 42%) |
| CMYK | cmyk(63%, 80.6%, 0%, 57.6%) |
| CIE-LAB | lab(15.85, 34.42, -46.94) |
| CIE-LCH | lch(15.85, 58.21, 306.25°) |
| OKLab | oklab(28.99% 0.0325 -0.1353) |
| OKLCH | oklch(28.99% 0.139 283.5) |
| XYZ | xyz(3.8492, 2.0699, 14.3811) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Dark Royal Blue
#02066F
ΔE00 4.35
Darkblue (survey)
#030764
ΔE00 4.36
Dark Indigo
#1F0954
ΔE00 4.47
Deep Blue
#040273
ΔE00 4.80
Indigo (survey)
#380282
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28156C #596C15
analogous
#152E6C #28156C #53156C
triadic
#28156C #6C2815 #156C28
tetradic
#28156C #6C152E #596C15 #156C53
square
#28156C #6C152E #596C15 #156C53
split-complementary
#28156C #6C5315 #2E6C15
monochromatic
#09051A #150B39 #28156C #3B1F9F #4E29D2
Accessibility & contrast
On white
14.85
#28156C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#28156C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28156C
14.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28156C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28156C | 1.00 | 14.85 | 1.41 | 14.85 |
| #FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #28156c; /* rgb */ color: rgb(40, 21, 108); /* oklch */ color: oklch(29.0% 0.139 283.5);
Tailwind
colors: {
custom: {
50: '#6c5597',
500: '#28156c',
950: '#000000',
},
}SCSS
$custom: #28156c; $custom-light: #6c5597; $custom-dark: #000000;
JSON
{
"hex": "#28156c",
"rgb": {
"r": 40,
"g": 21,
"b": 108
},
"hsl": {
"h": 253.103,
"s": 67.442,
"l": 25.294
},
"oklch": {
"l": 0.28992,
"c": 0.13916,
"h": 283.5
},
"luminance": 0.0207
}Semantic roles & 50–950 ramp
primary
#28156C
secondary
#8CA33A
accent
#EA3DC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E