#302BA4#302BA4
#302BA4 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.186 H 275.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #302BA4 |
|---|---|
| RGB | rgb(48, 43, 164) |
| HSL | hsl(242, 58%, 41%) |
| HSV | hsv(242, 74%, 64%) |
| CMYK | cmyk(70.7%, 73.8%, 0%, 35.7%) |
| CIE-LAB | lab(26.84, 41.40, -63.96) |
| CIE-LCH | lch(26.84, 76.19, 302.91°) |
| OKLab | oklab(38.7% 0.0167 -0.1849) |
| OKLCH | oklch(38.7% 0.186 275.2) |
| XYZ | xyz(8.7814, 5.0356, 35.6240) |
| Luminance | 0.0504 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.19
Indigo Blue
#3A18B1
ΔE00 4.24
Royal
#0C1793
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 6.18
True Blue
#010FCC
ΔE00 6.32
Ultramarine
#2000B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302BA4 #9FA42B
analogous
#2B63A4 #302BA4 #6C2BA4
triadic
#302BA4 #A4302B #2BA430
tetradic
#302BA4 #A42B63 #9FA42B #2BA46C
square
#302BA4 #A42B63 #9FA42B #2BA46C
split-complementary
#302BA4 #A46C2B #63A42B
monochromatic
#141243 #221E74 #302BA4 #453FCD #7470D9
Accessibility & contrast
On white
10.46
#302BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#302BA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302BA4
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302BA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302BA4 | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #302ba4; /* rgb */ color: rgb(48, 43, 164); /* oklch */ color: oklch(38.7% 0.186 275.2);
Tailwind
colors: {
custom: {
50: '#7a66c0',
500: '#302ba4',
950: '#000000',
},
}SCSS
$custom: #302ba4; $custom-light: #7a66c0; $custom-dark: #000000;
JSON
{
"hex": "#302ba4",
"rgb": {
"r": 48,
"g": 43,
"b": 164
},
"hsl": {
"h": 242.479,
"s": 58.454,
"l": 40.588
},
"oklch": {
"l": 0.38697,
"c": 0.18565,
"h": 275.2
},
"luminance": 0.05036
}Semantic roles & 50–950 ramp
primary
#302BA4
secondary
#BDC16A
accent
#E246DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81