#28338F#28338F
#28338F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.151 H 271.6°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #28338F |
|---|---|
| RGB | rgb(40, 51, 143) |
| HSL | hsl(234, 56%, 36%) |
| HSV | hsv(234, 72%, 56%) |
| CMYK | cmyk(72%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(26.16, 28.01, -52.24) |
| CIE-LCH | lch(26.16, 59.27, 298.20°) |
| OKLab | oklab(37.46% 0.0043 -0.1508) |
| OKLCH | oklch(37.46% 0.151 271.6) |
| XYZ | xyz(7.0151, 4.8012, 26.5383) |
| Luminance | 0.0480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.15
Blueberry
#464196
ΔE00 5.41
Darkslateblue
#483D8B
ΔE00 5.65
Royal
#0C1793
ΔE00 7.30
Midnight Blue
#191970
ΔE00 7.91
Cobalt
#0047AB
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28338F #8F8428
analogous
#28668F #28338F #50288F
triadic
#28338F #8F2833 #338F28
tetradic
#28338F #8F2866 #8F8428 #288F50
square
#28338F #8F2866 #8F8428 #288F50
split-complementary
#28338F #8F5028 #668F28
monochromatic
#0D112F #1B225F #28338F #3544BF #5F6BD2
Accessibility & contrast
On white
10.71
#28338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#28338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28338F
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28338F | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #28338f; /* rgb */ color: rgb(40, 51, 143); /* oklch */ color: oklch(37.5% 0.151 271.6);
Tailwind
colors: {
custom: {
50: '#716ab1',
500: '#28338f',
950: '#000000',
},
}SCSS
$custom: #28338f; $custom-light: #716ab1; $custom-dark: #000000;
JSON
{
"hex": "#28338f",
"rgb": {
"r": 40,
"g": 51,
"b": 143
},
"hsl": {
"h": 233.592,
"s": 56.284,
"l": 35.882
},
"oklch": {
"l": 0.37462,
"c": 0.15089,
"h": 271.6
},
"luminance": 0.04802
}Semantic roles & 50–950 ramp
primary
#28338F
secondary
#B8AE5B
accent
#CF48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80