#28318C#28318C
#28318C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.149 H 272.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).
Color values
| HEX | #28318C |
|---|---|
| RGB | rgb(40, 49, 140) |
| HSL | hsl(235, 56%, 35%) |
| HSV | hsv(235, 71%, 55%) |
| CMYK | cmyk(71.4%, 65%, 0%, 45.1%) |
| CIE-LAB | lab(25.38, 28.22, -51.65) |
| CIE-LCH | lch(25.38, 58.86, 298.65°) |
| OKLab | oklab(36.81% 0.006 -0.1491) |
| OKLCH | oklch(36.81% 0.149 272.3) |
| XYZ | xyz(6.7054, 4.5405, 25.3289) |
| Luminance | 0.0454 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.73
Darkslateblue
#483D8B
ΔE00 5.76
Blueberry
#464196
ΔE00 5.78
Royal
#0C1793
ΔE00 6.86
Midnight Blue
#191970
ΔE00 7.23
Indigo Blue
#3A18B1
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#28318C #8C8328
analogous
#28638C #28318C #51288C
triadic
#28318C #8C2831 #318C28
tetradic
#28318C #8C2863 #8C8328 #288C51
square
#28318C #8C2863 #8C8328 #288C51
split-complementary
#28318C #8C5128 #638C28
monochromatic
#0D102D #1A205C #28318C #3642BC #5E68D1
Accessibility & contrast
On white
11.01
#28318C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#28318C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #28318C
11.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##28318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##28318C | 1.00 | 11.01 | 1.91 | 11.01 |
| #FFFFFF | 11.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #28318c; /* rgb */ color: rgb(40, 49, 140); /* oklch */ color: oklch(36.8% 0.149 272.3);
Tailwind
colors: {
custom: {
50: '#7069ae',
500: '#28318c',
950: '#000000',
},
}SCSS
$custom: #28318c; $custom-light: #7069ae; $custom-dark: #000000;
JSON
{
"hex": "#28318c",
"rgb": {
"r": 40,
"g": 49,
"b": 140
},
"hsl": {
"h": 234.6,
"s": 55.556,
"l": 35.294
},
"oklch": {
"l": 0.36808,
"c": 0.14924,
"h": 272.3
},
"luminance": 0.04541
}Semantic roles & 50–950 ramp
primary
#28318C
secondary
#B6AE5A
accent
#D149DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F