#302F7C#302F7C
#302F7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.127 H 278.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #302F7C |
|---|---|
| RGB | rgb(48, 47, 124) |
| HSL | hsl(241, 45%, 34%) |
| HSV | hsv(241, 62%, 49%) |
| CMYK | cmyk(61.3%, 62.1%, 0%, 51.4%) |
| CIE-LAB | lab(24.05, 25.03, -43.77) |
| CIE-LCH | lch(24.05, 50.42, 299.76°) |
| OKLab | oklab(35.55% 0.0184 -0.1258) |
| OKLCH | oklch(35.55% 0.127 278.3) |
| XYZ | xyz(5.8724, 4.1162, 19.5499) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.28
Midnight Blue
#191970
ΔE00 6.21
Blueberry
#464196
ΔE00 6.42
Sapphire (survey)
#2138AB
ΔE00 7.54
Royal
#0C1793
ΔE00 7.83
Marine
#042E60
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302F7C #7B7C2F
analogous
#2F547C #302F7C #562F7C
triadic
#302F7C #7C302F #2F7C30
tetradic
#302F7C #7C2F54 #7B7C2F #2F7C56
square
#302F7C #7C2F54 #7B7C2F #2F7C56
split-complementary
#302F7C #7C562F #547C2F
monochromatic
#0E0D23 #1F1E50 #302F7C #4140A8 #6362C3
Accessibility & contrast
On white
11.52
#302F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#302F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302F7C
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302F7C | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #302f7c; /* rgb */ color: rgb(48, 47, 124); /* oklch */ color: oklch(35.5% 0.127 278.3);
Tailwind
colors: {
custom: {
50: '#7167a3',
500: '#302f7c',
950: '#000000',
},
}SCSS
$custom: #302f7c; $custom-light: #7167a3; $custom-dark: #000000;
JSON
{
"hex": "#302f7c",
"rgb": {
"r": 48,
"g": 47,
"b": 124
},
"hsl": {
"h": 240.779,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.35546,
"c": 0.12712,
"h": 278.3
},
"luminance": 0.04117
}Semantic roles & 50–950 ramp
primary
#302F7C
secondary
#A9AA5C
accent
#D553D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F