#302D7C#302D7C
#302D7C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.130 H 279.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #302D7C |
|---|---|
| RGB | rgb(48, 45, 124) |
| HSL | hsl(242, 47%, 33%) |
| HSV | hsv(242, 64%, 49%) |
| CMYK | cmyk(61.3%, 63.7%, 0%, 51.4%) |
| CIE-LAB | lab(23.54, 26.36, -44.61) |
| CIE-LCH | lch(23.54, 51.81, 300.58°) |
| OKLab | oklab(35.17% 0.0204 -0.1282) |
| OKLCH | oklch(35.17% 0.13 279.1) |
| XYZ | xyz(5.7942, 3.9600, 19.5239) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.59
Midnight Blue
#191970
ΔE00 5.68
Blueberry
#464196
ΔE00 6.77
Royal
#0C1793
ΔE00 7.33
Sapphire (survey)
#2138AB
ΔE00 7.70
Marine
#042E60
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302D7C #797C2D
analogous
#2D517C #302D7C #572D7C
triadic
#302D7C #7C302D #2D7C30
tetradic
#302D7C #7C2D51 #797C2D #2D7C57
square
#302D7C #7C2D51 #797C2D #2D7C57
split-complementary
#302D7C #7C572D #517C2D
monochromatic
#0D0C22 #1F1D4F #302D7C #413DA9 #625FC5
Accessibility & contrast
On white
11.72
#302D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#302D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302D7C
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302D7C | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #302d7c; /* rgb */ color: rgb(48, 45, 124); /* oklch */ color: oklch(35.2% 0.130 279.1);
Tailwind
colors: {
custom: {
50: '#7166a3',
500: '#302d7c',
950: '#000000',
},
}SCSS
$custom: #302d7c; $custom-light: #7166a3; $custom-dark: #000000;
JSON
{
"hex": "#302d7c",
"rgb": {
"r": 48,
"g": 45,
"b": 124
},
"hsl": {
"h": 242.278,
"s": 46.746,
"l": 33.137
},
"oklch": {
"l": 0.35168,
"c": 0.12987,
"h": 279.1
},
"luminance": 0.0396
}Semantic roles & 50–950 ramp
primary
#302D7C
secondary
#A8AB5A
accent
#D651D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F