#302DAB#302DAB
#302DAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.192 H 274.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).
Color values
| HEX | #302DAB |
|---|---|
| RGB | rgb(48, 45, 171) |
| HSL | hsl(241, 58%, 42%) |
| HSV | hsv(241, 74%, 67%) |
| CMYK | cmyk(71.9%, 73.7%, 0%, 32.9%) |
| CIE-LAB | lab(27.97, 42.58, -66.32) |
| CIE-LCH | lch(27.97, 78.81, 302.70°) |
| OKLab | oklab(39.72% 0.0143 -0.1918) |
| OKLCH | oklch(39.72% 0.192 274.3) |
| XYZ | xyz(9.5056, 5.4445, 39.0701) |
| Luminance | 0.0544 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.68
Indigo Blue
#3A18B1
ΔE00 4.32
True Blue
#010FCC
ΔE00 5.98
Royal
#0C1793
ΔE00 6.35
Ocean Blue
#4F42B5
ΔE00 6.46
Cobalt Blue
#030AA7
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302DAB #A8AB2D
analogous
#2D69AB #302DAB #6F2DAB
triadic
#302DAB #AB302D #2DAB30
tetradic
#302DAB #AB2D69 #A8AB2D #2DAB6F
square
#302DAB #AB2D69 #A8AB2D #2DAB6F
split-complementary
#302DAB #AB6F2D #69AB2D
monochromatic
#15144A #22207B #302DAB #4A47CE #7A77DB
Accessibility & contrast
On white
10.05
#302DAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#302DAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302DAB
10.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302DAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302DAB | 1.00 | 10.05 | 2.09 | 10.05 |
| #FFFFFF | 10.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #302dab; /* rgb */ color: rgb(48, 45, 171); /* oklch */ color: oklch(39.7% 0.192 274.3);
Tailwind
colors: {
custom: {
50: '#7b67c5',
500: '#302dab',
950: '#000000',
},
}SCSS
$custom: #302dab; $custom-light: #7b67c5; $custom-dark: #000000;
JSON
{
"hex": "#302dab",
"rgb": {
"r": 48,
"g": 45,
"b": 171
},
"hsl": {
"h": 241.429,
"s": 58.333,
"l": 42.353
},
"oklch": {
"l": 0.39715,
"c": 0.19232,
"h": 274.3
},
"luminance": 0.05445
}Semantic roles & 50–950 ramp
primary
#302DAB
secondary
#C1C371
accent
#E246DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82