#302D8F#302D8F
#302D8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.156 H 276.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).
Color values
| HEX | #302D8F |
|---|---|
| RGB | rgb(48, 45, 143) |
| HSL | hsl(242, 52%, 37%) |
| HSV | hsv(242, 69%, 56%) |
| CMYK | cmyk(66.4%, 68.5%, 0%, 43.9%) |
| CIE-LAB | lab(25.22, 33.03, -53.75) |
| CIE-LCH | lch(25.22, 63.09, 301.57°) |
| OKLab | oklab(36.92% 0.0187 -0.1551) |
| OKLCH | oklch(36.92% 0.156 276.9) |
| XYZ | xyz(7.1136, 4.4877, 26.4726) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.20
Royal
#0C1793
ΔE00 5.69
Darkslateblue
#483D8B
ΔE00 5.75
Blueberry
#464196
ΔE00 6.07
Midnight Blue
#191970
ΔE00 6.70
Indigo Blue
#3A18B1
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302D8F #8C8F2D
analogous
#2D5B8F #302D8F #612D8F
triadic
#302D8F #8F302D #2D8F30
tetradic
#302D8F #8F2D5B #8C8F2D #2D8F61
square
#302D8F #8F2D5B #8C8F2D #2D8F61
split-complementary
#302D8F #8F612D #5B8F2D
monochromatic
#111032 #201E60 #302D8F #403CBE #6A67CF
Accessibility & contrast
On white
11.07
#302D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#302D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302D8F
11.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302D8F | 1.00 | 11.07 | 1.90 | 11.07 |
| #FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #302d8f; /* rgb */ color: rgb(48, 45, 143); /* oklch */ color: oklch(36.9% 0.156 276.9);
Tailwind
colors: {
custom: {
50: '#7566b1',
500: '#302d8f',
950: '#000000',
},
}SCSS
$custom: #302d8f; $custom-light: #7566b1; $custom-dark: #000000;
JSON
{
"hex": "#302d8f",
"rgb": {
"r": 48,
"g": 45,
"b": 143
},
"hsl": {
"h": 241.837,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.36917,
"c": 0.1562,
"h": 276.9
},
"luminance": 0.04488
}Semantic roles & 50–950 ramp
primary
#302D8F
secondary
#B3B662
accent
#DC4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80