#302187#302187
#302187 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.160 H 280.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #302187 |
|---|---|
| RGB | rgb(48, 33, 135) |
| HSL | hsl(249, 61%, 33%) |
| HSV | hsv(249, 76%, 53%) |
| CMYK | cmyk(64.4%, 75.6%, 0%, 47.1%) |
| CIE-LAB | lab(21.82, 37.56, -54.36) |
| CIE-LCH | lch(21.82, 66.07, 304.64°) |
| OKLab | oklab(34.24% 0.0292 -0.1568) |
| OKLCH | oklch(34.24% 0.16 280.5) |
| XYZ | xyz(6.1346, 3.4649, 23.2625) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.88
Midnight Blue
#191970
ΔE00 4.56
Indigo (survey)
#380282
ΔE00 5.32
Cobalt Blue
#030AA7
ΔE00 6.15
Indigo Blue
#3A18B1
ΔE00 6.29
Darkblue
#00008B
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302187 #788721
analogous
#214587 #302187 #632187
triadic
#302187 #873021 #218730
tetradic
#302187 #872145 #788721 #218763
square
#302187 #872145 #788721 #218763
split-complementary
#302187 #876321 #458721
monochromatic
#0D0925 #1F1556 #302187 #412DB8 #624FD4
Accessibility & contrast
On white
12.40
#302187 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#302187 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302187
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302187 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302187 | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #302187; /* rgb */ color: rgb(48, 33, 135); /* oklch */ color: oklch(34.2% 0.160 280.5);
Tailwind
colors: {
custom: {
50: '#745eab',
500: '#302187',
950: '#000000',
},
}SCSS
$custom: #302187; $custom-light: #745eab; $custom-dark: #000000;
JSON
{
"hex": "#302187",
"rgb": {
"r": 48,
"g": 33,
"b": 135
},
"hsl": {
"h": 248.824,
"s": 60.714,
"l": 32.941
},
"oklch": {
"l": 0.34241,
"c": 0.15952,
"h": 280.5
},
"luminance": 0.03465
}Semantic roles & 50–950 ramp
primary
#302187
secondary
#A7B74D
accent
#E444CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F