#302FAF#302FAF
#302FAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.195 H 273.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #302FAF |
|---|---|
| RGB | rgb(48, 47, 175) |
| HSL | hsl(240, 58%, 44%) |
| HSV | hsv(240, 73%, 69%) |
| CMYK | cmyk(72.6%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(28.79, 42.76, -67.36) |
| CIE-LCH | lch(28.79, 79.79, 302.41°) |
| OKLab | oklab(40.42% 0.0125 -0.1948) |
| OKLCH | oklch(40.42% 0.195 273.7) |
| XYZ | xyz(9.9707, 5.7556, 41.1346) |
| Luminance | 0.0576 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.32
Indigo Blue
#3A18B1
ΔE00 4.70
Ocean Blue
#4F42B5
ΔE00 5.97
True Blue
#010FCC
ΔE00 6.04
Blue Blue
#2242C7
ΔE00 6.16
Blue With A Hint Of Purple
#533CC6
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302FAF #AEAF2F
analogous
#2F6EAF #302FAF #702FAF
triadic
#302FAF #AF302F #2FAF30
tetradic
#302FAF #AF2F6E #AEAF2F #2FAF70
square
#302FAF #AF2F6E #AEAF2F #2FAF70
split-complementary
#302FAF #AF702F #6EAF2F
monochromatic
#16154F #23227F #302FAF #4D4CCF #7D7CDC
Accessibility & contrast
On white
9.76
#302FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#302FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302FAF
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302FAF | 1.00 | 9.76 | 2.15 | 9.76 |
| #FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #302faf; /* rgb */ color: rgb(48, 47, 175); /* oklch */ color: oklch(40.4% 0.195 273.7);
Tailwind
colors: {
custom: {
50: '#7c69c8',
500: '#302faf',
950: '#000000',
},
}SCSS
$custom: #302faf; $custom-light: #7c69c8; $custom-dark: #000000;
JSON
{
"hex": "#302faf",
"rgb": {
"r": 48,
"g": 47,
"b": 175
},
"hsl": {
"h": 240.469,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.40423,
"c": 0.19524,
"h": 273.7
},
"luminance": 0.05757
}Semantic roles & 50–950 ramp
primary
#302FAF
secondary
#C4C475
accent
#E147E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82