#302C7F#302C7F
#302C7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.135 H 279.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #302C7F |
|---|---|
| RGB | rgb(48, 44, 127) |
| HSL | hsl(243, 49%, 34%) |
| HSV | hsv(243, 65%, 50%) |
| CMYK | cmyk(62.2%, 65.4%, 0%, 50.2%) |
| CIE-LAB | lab(23.54, 28.07, -46.50) |
| CIE-LCH | lch(23.54, 54.32, 301.12°) |
| OKLab | oklab(35.25% 0.0212 -0.1338) |
| OKLCH | oklch(35.25% 0.135 279) |
| XYZ | xyz(5.9492, 3.9616, 20.5257) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.47
Darkslateblue
#483D8B
ΔE00 5.69
Royal
#0C1793
ΔE00 6.72
Blueberry
#464196
ΔE00 6.77
Sapphire (survey)
#2138AB
ΔE00 7.35
Indigo (survey)
#380282
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#302C7F #7B7F2C
analogous
#2C517F #302C7F #592C7F
triadic
#302C7F #7F302C #2C7F30
tetradic
#302C7F #7F2C51 #7B7F2C #2C7F59
square
#302C7F #7F2C51 #7B7F2C #2C7F59
split-complementary
#302C7F #7F592C #517F2C
monochromatic
#0E0D24 #1F1C52 #302C7F #413CAC #635EC7
Accessibility & contrast
On white
11.72
#302C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#302C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #302C7F
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##302C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##302C7F | 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)
#003B82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #302c7f; /* rgb */ color: rgb(48, 44, 127); /* oklch */ color: oklch(35.3% 0.135 279.0);
Tailwind
colors: {
custom: {
50: '#7265a5',
500: '#302c7f',
950: '#000000',
},
}SCSS
$custom: #302c7f; $custom-light: #7265a5; $custom-dark: #000000;
JSON
{
"hex": "#302c7f",
"rgb": {
"r": 48,
"g": 44,
"b": 127
},
"hsl": {
"h": 242.892,
"s": 48.538,
"l": 33.529
},
"oklch": {
"l": 0.35252,
"c": 0.13547,
"h": 279
},
"luminance": 0.03962
}Semantic roles & 50–950 ramp
primary
#302C7F
secondary
#A9AD59
accent
#D850D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F