#302F9F#302F9F
#302F9F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.175 H 274.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #302F9F |
|---|---|
| RGB | rgb(48, 47, 159) |
| HSL | hsl(241, 54%, 40%) |
| HSV | hsv(241, 70%, 62%) |
| CMYK | cmyk(69.8%, 70.4%, 0%, 37.6%) |
| CIE-LAB | lab(27.20, 37.33, -60.33) |
| CIE-LCH | lch(27.20, 70.95, 301.75°) |
| OKLab | oklab(38.8% 0.0151 -0.1743) |
| OKLCH | oklch(38.8% 0.175 274.9) |
| XYZ | xyz(8.4914, 5.1638, 33.3434) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.47
Indigo Blue
#3A18B1
ΔE00 5.53
Blueberry
#464196
ΔE00 5.95
Royal
#0C1793
ΔE00 6.11
Darkslateblue
#483D8B
ΔE00 6.42
Ocean Blue
#4F42B5
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302F9F #9E9F2F
analogous
#2F669F #302F9F #682F9F
triadic
#302F9F #9F302F #2F9F30
tetradic
#302F9F #9F2F66 #9E9F2F #2F9F68
square
#302F9F #9F2F66 #9E9F2F #2F9F68
split-complementary
#302F9F #9F682F #669F2F
monochromatic
#131341 #222170 #302F9F #4544C8 #7473D6
Accessibility & contrast
On white
10.33
#302F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#302F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302F9F
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302F9F | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #302f9f; /* rgb */ color: rgb(48, 47, 159); /* oklch */ color: oklch(38.8% 0.175 274.9);
Tailwind
colors: {
custom: {
50: '#7868bc',
500: '#302f9f',
950: '#000000',
},
}SCSS
$custom: #302f9f; $custom-light: #7868bc; $custom-dark: #000000;
JSON
{
"hex": "#302f9f",
"rgb": {
"r": 48,
"g": 47,
"b": 159
},
"hsl": {
"h": 240.536,
"s": 54.369,
"l": 40.392
},
"oklch": {
"l": 0.38804,
"c": 0.17498,
"h": 274.9
},
"luminance": 0.05165
}Semantic roles & 50–950 ramp
primary
#302F9F
secondary
#BDBD6D
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81