#28317F#28317F
#28317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.131 H 272.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #28317F |
|---|---|
| RGB | rgb(40, 49, 127) |
| HSL | hsl(234, 52%, 33%) |
| HSV | hsv(234, 69%, 50%) |
| CMYK | cmyk(68.5%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.26, 23.36, -45.36) |
| CIE-LCH | lch(24.26, 51.03, 297.25°) |
| OKLab | oklab(35.63% 0.0065 -0.1307) |
| OKLCH | oklch(35.63% 0.131 272.8) |
| XYZ | xyz(5.8029, 4.1795, 20.5755) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.87
Blueberry
#464196
ΔE00 6.43
Sapphire (survey)
#2138AB
ΔE00 6.66
Midnight Blue
#191970
ΔE00 6.82
Marine
#042E60
ΔE00 7.11
Royal
#0C1793
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28317F #7F7628
analogous
#285C7F #28317F #4A287F
triadic
#28317F #7F2831 #317F28
tetradic
#28317F #7F285C #7F7628 #287F4A
square
#28317F #7F285C #7F7628 #287F4A
split-complementary
#28317F #7F4A28 #5C7F28
monochromatic
#0B0D22 #191F50 #28317F #3743AE #5763CA
Accessibility & contrast
On white
11.44
#28317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#28317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28317F
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28317F | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #28317f; /* rgb */ color: rgb(40, 49, 127); /* oklch */ color: oklch(35.6% 0.131 272.8);
Tailwind
colors: {
custom: {
50: '#6d69a5',
500: '#28317f',
950: '#000000',
},
}SCSS
$custom: #28317f; $custom-light: #6d69a5; $custom-dark: #000000;
JSON
{
"hex": "#28317f",
"rgb": {
"r": 40,
"g": 49,
"b": 127
},
"hsl": {
"h": 233.793,
"s": 52.096,
"l": 32.745
},
"oklch": {
"l": 0.35626,
"c": 0.13082,
"h": 272.8
},
"luminance": 0.0418
}Semantic roles & 50–950 ramp
primary
#28317F
secondary
#AFA654
accent
#CD4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F