#302BA8#302BA8
#302BA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.191 H 274.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #302BA8 |
|---|---|
| RGB | rgb(48, 43, 168) |
| HSL | hsl(242, 59%, 41%) |
| HSV | hsv(242, 74%, 66%) |
| CMYK | cmyk(71.4%, 74.4%, 0%, 34.1%) |
| CIE-LAB | lab(27.25, 42.73, -65.70) |
| CIE-LCH | lch(27.25, 78.37, 303.04°) |
| OKLab | oklab(39.11% 0.0159 -0.19) |
| OKLCH | oklch(39.11% 0.191 274.8) |
| XYZ | xyz(9.1483, 5.1824, 37.5564) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.99
Sapphire (survey)
#2138AB
ΔE00 4.14
Royal
#0C1793
ΔE00 5.78
True Blue
#010FCC
ΔE00 5.92
Cobalt Blue
#030AA7
ΔE00 6.18
Ultramarine
#2000B1
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302BA8 #A3A82B
analogous
#2B65A8 #302BA8 #6F2BA8
triadic
#302BA8 #A8302B #2BA830
tetradic
#302BA8 #A82B65 #A3A82B #2BA86F
square
#302BA8 #A82B65 #A3A82B #2BA86F
split-complementary
#302BA8 #A86F2B #65A82B
monochromatic
#141247 #221F77 #302BA8 #4742CF #7772DB
Accessibility & contrast
On white
10.31
#302BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#302BA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302BA8
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302BA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302BA8 | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #302ba8; /* rgb */ color: rgb(48, 43, 168); /* oklch */ color: oklch(39.1% 0.191 274.8);
Tailwind
colors: {
custom: {
50: '#7b66c3',
500: '#302ba8',
950: '#000000',
},
}SCSS
$custom: #302ba8; $custom-light: #7b66c3; $custom-dark: #000000;
JSON
{
"hex": "#302ba8",
"rgb": {
"r": 48,
"g": 43,
"b": 168
},
"hsl": {
"h": 242.4,
"s": 59.242,
"l": 41.373
},
"oklch": {
"l": 0.39113,
"c": 0.19063,
"h": 274.8
},
"luminance": 0.05183
}Semantic roles & 50–950 ramp
primary
#302BA8
secondary
#BFC26C
accent
#E245DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82