#28318F#28318F
#28318F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.153 H 272.2°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).
Color values
| HEX | #28318F |
|---|---|
| RGB | rgb(40, 49, 143) |
| HSL | hsl(235, 56%, 36%) |
| HSV | hsv(235, 72%, 56%) |
| CMYK | cmyk(72%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(25.65, 29.33, -53.07) |
| CIE-LCH | lch(25.65, 60.64, 298.93°) |
| OKLab | oklab(37.09% 0.0058 -0.1533) |
| OKLCH | oklch(37.09% 0.153 272.2) |
| XYZ | xyz(6.9296, 4.6302, 26.5098) |
| Luminance | 0.0463 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.33
Blueberry
#464196
ΔE00 5.73
Darkslateblue
#483D8B
ΔE00 5.84
Royal
#0C1793
ΔE00 6.69
Midnight Blue
#191970
ΔE00 7.43
Indigo Blue
#3A18B1
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28318F #8F8628
analogous
#28648F #28318F #52288F
triadic
#28318F #8F2831 #318F28
tetradic
#28318F #8F2864 #8F8628 #288F52
square
#28318F #8F2864 #8F8628 #288F52
split-complementary
#28318F #8F5228 #648F28
monochromatic
#0D102F #1B215F #28318F #3541BF #5F69D2
Accessibility & contrast
On white
10.90
#28318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#28318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28318F
10.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28318F | 1.00 | 10.90 | 1.93 | 10.90 |
| #FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #28318f; /* rgb */ color: rgb(40, 49, 143); /* oklch */ color: oklch(37.1% 0.153 272.2);
Tailwind
colors: {
custom: {
50: '#7169b1',
500: '#28318f',
950: '#000000',
},
}SCSS
$custom: #28318f; $custom-light: #7169b1; $custom-dark: #000000;
JSON
{
"hex": "#28318f",
"rgb": {
"r": 40,
"g": 49,
"b": 143
},
"hsl": {
"h": 234.757,
"s": 56.284,
"l": 35.882
},
"oklch": {
"l": 0.3709,
"c": 0.15338,
"h": 272.2
},
"luminance": 0.04631
}Semantic roles & 50–950 ramp
primary
#28318F
secondary
#B8B05B
accent
#D248E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80