#302BA5#302BA5
#302BA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.187 H 275.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #302BA5 |
|---|---|
| RGB | rgb(48, 43, 165) |
| HSL | hsl(242, 59%, 41%) |
| HSV | hsv(242, 74%, 65%) |
| CMYK | cmyk(70.9%, 73.9%, 0%, 35.3%) |
| CIE-LAB | lab(26.94, 41.73, -64.39) |
| CIE-LCH | lch(26.94, 76.73, 302.95°) |
| OKLab | oklab(38.8% 0.0165 -0.1862) |
| OKLCH | oklch(38.8% 0.187 275.1) |
| XYZ | xyz(8.8721, 5.0719, 36.1014) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.17
Sapphire (survey)
#2138AB
ΔE00 4.17
Royal
#0C1793
ΔE00 5.58
Cobalt Blue
#030AA7
ΔE00 6.17
True Blue
#010FCC
ΔE00 6.22
Ultramarine
#2000B1
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302BA5 #A0A52B
analogous
#2B63A5 #302BA5 #6D2BA5
triadic
#302BA5 #A5302B #2BA530
tetradic
#302BA5 #A52B63 #A0A52B #2BA56D
square
#302BA5 #A52B63 #A0A52B #2BA56D
split-complementary
#302BA5 #A56D2B #63A52B
monochromatic
#141244 #221E74 #302BA5 #4640CD #7571DA
Accessibility & contrast
On white
10.42
#302BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#302BA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302BA5
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302BA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302BA5 | 1.00 | 10.42 | 2.01 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #302ba5; /* rgb */ color: rgb(48, 43, 165); /* oklch */ color: oklch(38.8% 0.187 275.1);
Tailwind
colors: {
custom: {
50: '#7a66c1',
500: '#302ba5',
950: '#000000',
},
}SCSS
$custom: #302ba5; $custom-light: #7a66c1; $custom-dark: #000000;
JSON
{
"hex": "#302ba5",
"rgb": {
"r": 48,
"g": 43,
"b": 165
},
"hsl": {
"h": 242.459,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.388,
"c": 0.1869,
"h": 275.1
},
"luminance": 0.05073
}Semantic roles & 50–950 ramp
primary
#302BA5
secondary
#BEC16B
accent
#E246DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81