#28339E#28339E
#28339E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.171 H 271.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #28339E |
|---|---|
| RGB | rgb(40, 51, 158) |
| HSL | hsl(234, 60%, 39%) |
| HSV | hsv(234, 75%, 62%) |
| CMYK | cmyk(74.7%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(27.54, 33.53, -59.18) |
| CIE-LCH | lch(27.54, 68.02, 299.54°) |
| OKLab | oklab(38.89% 0.0033 -0.1712) |
| OKLCH | oklch(38.89% 0.171 271.1) |
| XYZ | xyz(8.2284, 5.2865, 32.9279) |
| Luminance | 0.0529 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.30
Blueberry
#464196
ΔE00 5.55
Darkslateblue
#483D8B
ΔE00 6.37
Blue Blue
#2242C7
ΔE00 6.76
Ocean Blue
#4F42B5
ΔE00 6.88
Royal
#0C1793
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28339E #9E9328
analogous
#286E9E #28339E #58289E
triadic
#28339E #9E2833 #339E28
tetradic
#28339E #9E286E #9E9328 #289E58
square
#28339E #9E286E #9E9328 #289E58
split-complementary
#28339E #9E5828 #6E9E28
monochromatic
#0F133C #1C236D #28339E #3745CC #6872D9
Accessibility & contrast
On white
10.21
#28339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#28339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28339E
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28339E | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #28339e; /* rgb */ color: rgb(40, 51, 158); /* oklch */ color: oklch(38.9% 0.171 271.1);
Tailwind
colors: {
custom: {
50: '#756bbc',
500: '#28339e',
950: '#000000',
},
}SCSS
$custom: #28339e; $custom-light: #756bbc; $custom-dark: #000000;
JSON
{
"hex": "#28339e",
"rgb": {
"r": 40,
"g": 51,
"b": 158
},
"hsl": {
"h": 234.407,
"s": 59.596,
"l": 38.824
},
"oklch": {
"l": 0.3889,
"c": 0.17119,
"h": 271.1
},
"luminance": 0.05287
}Semantic roles & 50–950 ramp
primary
#28339E
secondary
#BFB663
accent
#D445E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81