#28319E#28319E
#28319E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.174 H 271.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #28319E |
|---|---|
| RGB | rgb(40, 49, 158) |
| HSL | hsl(235, 60%, 39%) |
| HSV | hsv(235, 75%, 62%) |
| CMYK | cmyk(74.7%, 69%, 0%, 38%) |
| CIE-LAB | lab(27.06, 34.81, -59.96) |
| CIE-LCH | lch(27.06, 69.33, 300.14°) |
| OKLab | oklab(38.55% 0.0045 -0.1734) |
| OKLCH | oklch(38.55% 0.174 271.5) |
| XYZ | xyz(8.1428, 5.1155, 32.8994) |
| Luminance | 0.0512 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.69
Blueberry
#464196
ΔE00 5.90
Royal
#0C1793
ΔE00 6.45
Indigo Blue
#3A18B1
ΔE00 6.55
Darkslateblue
#483D8B
ΔE00 6.57
Blue Blue
#2242C7
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28319E #9E9528
analogous
#286C9E #28319E #5A289E
triadic
#28319E #9E2831 #319E28
tetradic
#28319E #9E286C #9E9528 #289E5A
square
#28319E #9E286C #9E9528 #289E5A
split-complementary
#28319E #9E5A28 #6C9E28
monochromatic
#0F133C #1C226D #28319E #3742CC #6870D9
Accessibility & contrast
On white
10.38
#28319E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#28319E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28319E
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28319E | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #28319e; /* rgb */ color: rgb(40, 49, 158); /* oklch */ color: oklch(38.5% 0.174 271.5);
Tailwind
colors: {
custom: {
50: '#7569bc',
500: '#28319e',
950: '#000000',
},
}SCSS
$custom: #28319e; $custom-light: #7569bc; $custom-dark: #000000;
JSON
{
"hex": "#28319e",
"rgb": {
"r": 40,
"g": 49,
"b": 158
},
"hsl": {
"h": 235.424,
"s": 59.596,
"l": 38.824
},
"oklch": {
"l": 0.38546,
"c": 0.17351,
"h": 271.5
},
"luminance": 0.05116
}Semantic roles & 50–950 ramp
primary
#28319E
secondary
#BFB863
accent
#D745E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81