#302FAB#302FAB
#302FAB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.190 H 274.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #302FAB |
|---|---|
| RGB | rgb(48, 47, 171) |
| HSL | hsl(240, 57%, 43%) |
| HSV | hsv(240, 73%, 67%) |
| CMYK | cmyk(71.9%, 72.5%, 0%, 32.9%) |
| CIE-LAB | lab(28.38, 41.42, -65.63) |
| CIE-LCH | lch(28.38, 77.61, 302.26°) |
| OKLab | oklab(40.01% 0.0132 -0.1898) |
| OKLCH | oklch(40.01% 0.19 274) |
| XYZ | xyz(9.5837, 5.6007, 39.0962) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.22
Indigo Blue
#3A18B1
ΔE00 4.80
Ocean Blue
#4F42B5
ΔE00 6.12
True Blue
#010FCC
ΔE00 6.35
Blue Blue
#2242C7
ΔE00 6.44
Blue With A Hint Of Purple
#533CC6
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302FAB #AAAB2F
analogous
#2F6CAB #302FAB #6E2FAB
triadic
#302FAB #AB302F #2FAB30
tetradic
#302FAB #AB2F6C #AAAB2F #2FAB6E
square
#302FAB #AB2F6C #AAAB2F #2FAB6E
split-complementary
#302FAB #AB6E2F #6CAB2F
monochromatic
#15154B #23227B #302FAB #4B4ACD #7B7ADA
Accessibility & contrast
On white
9.90
#302FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#302FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302FAB
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302FAB | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #302fab; /* rgb */ color: rgb(48, 47, 171); /* oklch */ color: oklch(40.0% 0.190 274.0);
Tailwind
colors: {
custom: {
50: '#7b69c5',
500: '#302fab',
950: '#000000',
},
}SCSS
$custom: #302fab; $custom-light: #7b69c5; $custom-dark: #000000;
JSON
{
"hex": "#302fab",
"rgb": {
"r": 48,
"g": 47,
"b": 171
},
"hsl": {
"h": 240.484,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.40012,
"c": 0.19026,
"h": 274
},
"luminance": 0.05602
}Semantic roles & 50–950 ramp
primary
#302FAB
secondary
#C2C373
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82