#302F98#302F98
#302F98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.166 H 275.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #302F98 |
|---|---|
| RGB | rgb(48, 47, 152) |
| HSL | hsl(241, 53%, 39%) |
| HSV | hsv(241, 69%, 60%) |
| CMYK | cmyk(68.4%, 69.1%, 0%, 40.4%) |
| CIE-LAB | lab(26.53, 34.91, -57.16) |
| CIE-LCH | lch(26.53, 66.97, 301.41°) |
| OKLab | oklab(38.12% 0.016 -0.165) |
| OKLCH | oklch(38.12% 0.166 275.5) |
| XYZ | xyz(7.9011, 4.9277, 30.2344) |
| Luminance | 0.0493 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.96
Blueberry
#464196
ΔE00 5.71
Darkslateblue
#483D8B
ΔE00 5.91
Royal
#0C1793
ΔE00 6.01
Indigo Blue
#3A18B1
ΔE00 6.18
Ocean Blue
#4F42B5
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302F98 #97982F
analogous
#2F6398 #302F98 #652F98
triadic
#302F98 #98302F #2F9830
tetradic
#302F98 #982F63 #97982F #2F9865
square
#302F98 #982F63 #97982F #2F9865
split-complementary
#302F98 #98652F #63982F
monochromatic
#12123B #212169 #302F98 #4140C4 #706FD2
Accessibility & contrast
On white
10.58
#302F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#302F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302F98
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302F98 | 1.00 | 10.58 | 1.99 | 10.58 |
| #FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #302f98; /* rgb */ color: rgb(48, 47, 152); /* oklch */ color: oklch(38.1% 0.166 275.5);
Tailwind
colors: {
custom: {
50: '#7768b7',
500: '#302f98',
950: '#000000',
},
}SCSS
$custom: #302f98; $custom-light: #7768b7; $custom-dark: #000000;
JSON
{
"hex": "#302f98",
"rgb": {
"r": 48,
"g": 47,
"b": 152
},
"hsl": {
"h": 240.571,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.38119,
"c": 0.16582,
"h": 275.5
},
"luminance": 0.04928
}Semantic roles & 50–950 ramp
primary
#302F98
secondary
#B9BA69
accent
#DC4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80