#30318E#30318E
#30318E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.150 H 275.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).
Color values
| HEX | #30318E |
|---|---|
| RGB | rgb(48, 49, 142) |
| HSL | hsl(239, 49%, 37%) |
| HSV | hsv(239, 66%, 56%) |
| CMYK | cmyk(66.2%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(26.09, 30.12, -51.71) |
| CIE-LCH | lch(26.09, 59.84, 300.21°) |
| OKLab | oklab(37.52% 0.0155 -0.1491) |
| OKLCH | oklch(37.52% 0.15 275.9) |
| XYZ | xyz(7.1981, 4.7774, 26.1287) |
| Luminance | 0.0478 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.76
Darkslateblue
#483D8B
ΔE00 5.02
Blueberry
#464196
ΔE00 5.18
Royal
#0C1793
ΔE00 6.79
Midnight Blue
#191970
ΔE00 7.39
Indigo Blue
#3A18B1
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30318E #8E8D30
analogous
#30608E #30318E #5E308E
triadic
#30318E #8E3031 #318E30
tetradic
#30318E #8E3060 #8E8D30 #308E5E
square
#30318E #8E3060 #8E8D30 #308E5E
split-complementary
#30318E #8E5E30 #608E30
monochromatic
#111133 #212160 #30318E #3F41BC #6B6CCD
Accessibility & contrast
On white
10.74
#30318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#30318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30318E
10.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30318E | 1.00 | 10.74 | 1.96 | 10.74 |
| #FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #30318e; /* rgb */ color: rgb(48, 49, 142); /* oklch */ color: oklch(37.5% 0.150 275.9);
Tailwind
colors: {
custom: {
50: '#7469b0',
500: '#30318e',
950: '#000000',
},
}SCSS
$custom: #30318e; $custom-light: #7469b0; $custom-dark: #000000;
JSON
{
"hex": "#30318e",
"rgb": {
"r": 48,
"g": 49,
"b": 142
},
"hsl": {
"h": 239.362,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.3752,
"c": 0.14989,
"h": 275.9
},
"luminance": 0.04778
}Semantic roles & 50–950 ramp
primary
#30318E
secondary
#B4B465
accent
#D84FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80