#302A8E#302A8E
#302A8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.158 H 277.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #302A8E |
|---|---|
| RGB | rgb(48, 42, 142) |
| HSL | hsl(244, 54%, 36%) |
| HSV | hsv(244, 70%, 56%) |
| CMYK | cmyk(66.2%, 70.4%, 0%, 44.3%) |
| CIE-LAB | lab(24.44, 34.55, -54.42) |
| CIE-LCH | lch(24.44, 64.46, 302.41°) |
| OKLab | oklab(36.32% 0.0211 -0.157) |
| OKLCH | oklch(36.32% 0.158 277.7) |
| XYZ | xyz(6.9278, 4.2367, 26.0386) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.03
Sapphire (survey)
#2138AB
ΔE00 5.81
Midnight Blue
#191970
ΔE00 6.14
Darkslateblue
#483D8B
ΔE00 6.31
Indigo Blue
#3A18B1
ΔE00 6.37
Blueberry
#464196
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302A8E #888E2A
analogous
#2A568E #302A8E #622A8E
triadic
#302A8E #8E302A #2A8E30
tetradic
#302A8E #8E2A56 #888E2A #2A8E62
square
#302A8E #8E2A56 #888E2A #2A8E62
split-complementary
#302A8E #8E622A #568E2A
monochromatic
#100E30 #201C5F #302A8E #4038BD #6962D1
Accessibility & contrast
On white
11.37
#302A8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#302A8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302A8E
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302A8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302A8E | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #302a8e; /* rgb */ color: rgb(48, 42, 142); /* oklch */ color: oklch(36.3% 0.158 277.7);
Tailwind
colors: {
custom: {
50: '#7564b0',
500: '#302a8e',
950: '#000000',
},
}SCSS
$custom: #302a8e; $custom-light: #7564b0; $custom-dark: #000000;
JSON
{
"hex": "#302a8e",
"rgb": {
"r": 48,
"g": 42,
"b": 142
},
"hsl": {
"h": 243.6,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.36323,
"c": 0.15845,
"h": 277.7
},
"luminance": 0.04237
}Semantic roles & 50–950 ramp
primary
#302A8E
secondary
#B1B65D
accent
#DE4AD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090511
muted
#7B7A80