#28318E#28318E
#28318E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.152 H 272.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #28318E |
|---|---|
| RGB | rgb(40, 49, 142) |
| HSL | hsl(235, 56%, 36%) |
| HSV | hsv(235, 72%, 56%) |
| CMYK | cmyk(71.8%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.56, 28.96, -52.60) |
| CIE-LCH | lch(25.56, 60.04, 298.84°) |
| OKLab | oklab(37% 0.0059 -0.1519) |
| OKLCH | oklch(37% 0.152 272.2) |
| XYZ | xyz(6.8542, 4.6001, 26.1126) |
| Luminance | 0.0460 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.46
Blueberry
#464196
ΔE00 5.74
Darkslateblue
#483D8B
ΔE00 5.81
Royal
#0C1793
ΔE00 6.74
Midnight Blue
#191970
ΔE00 7.36
Indigo Blue
#3A18B1
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28318E #8E8528
analogous
#28648E #28318E #52288E
triadic
#28318E #8E2831 #318E28
tetradic
#28318E #8E2864 #8E8528 #288E52
square
#28318E #8E2864 #8E8528 #288E52
split-complementary
#28318E #8E5228 #648E28
monochromatic
#0D102F #1B215E #28318E #3541BE #5F69D2
Accessibility & contrast
On white
10.94
#28318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#28318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28318E
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28318E | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #28318e; /* rgb */ color: rgb(40, 49, 142); /* oklch */ color: oklch(37.0% 0.152 272.2);
Tailwind
colors: {
custom: {
50: '#7169b0',
500: '#28318e',
950: '#000000',
},
}SCSS
$custom: #28318e; $custom-light: #7169b0; $custom-dark: #000000;
JSON
{
"hex": "#28318e",
"rgb": {
"r": 40,
"g": 49,
"b": 142
},
"hsl": {
"h": 234.706,
"s": 56.044,
"l": 35.686
},
"oklch": {
"l": 0.36996,
"c": 0.152,
"h": 272.2
},
"luminance": 0.04601
}Semantic roles & 50–950 ramp
primary
#28318E
secondary
#B7AF5B
accent
#D248DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80