#30318F#30318F
#30318F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.151 H 275.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #30318F |
|---|---|
| RGB | rgb(48, 49, 143) |
| HSL | hsl(239, 50%, 37%) |
| HSV | hsv(239, 66%, 56%) |
| CMYK | cmyk(66.4%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(26.18, 30.47, -52.19) |
| CIE-LCH | lch(26.18, 60.43, 300.28°) |
| OKLab | oklab(37.61% 0.0154 -0.1505) |
| OKLCH | oklch(37.61% 0.151 275.9) |
| XYZ | xyz(7.2735, 4.8076, 26.5259) |
| Luminance | 0.0481 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.63
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 5.17
Royal
#0C1793
ΔE00 6.74
Midnight Blue
#191970
ΔE00 7.46
Indigo Blue
#3A18B1
ΔE00 7.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30318F #8F8E30
analogous
#30618F #30318F #5E308F
triadic
#30318F #8F3031 #318F30
tetradic
#30318F #8F3061 #8F8E30 #308F5E
square
#30318F #8F3061 #8F8E30 #308F5E
split-complementary
#30318F #8F5E30 #618F30
monochromatic
#111233 #212161 #30318F #3F41BD #6C6DCE
Accessibility & contrast
On white
10.71
#30318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#30318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30318F
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30318F | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #30318f; /* rgb */ color: rgb(48, 49, 143); /* oklch */ color: oklch(37.6% 0.151 275.9);
Tailwind
colors: {
custom: {
50: '#7569b1',
500: '#30318f',
950: '#000000',
},
}SCSS
$custom: #30318f; $custom-light: #7569b1; $custom-dark: #000000;
JSON
{
"hex": "#30318f",
"rgb": {
"r": 48,
"g": 49,
"b": 143
},
"hsl": {
"h": 239.368,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.37612,
"c": 0.15127,
"h": 275.9
},
"luminance": 0.04808
}Semantic roles & 50–950 ramp
primary
#30318F
secondary
#B5B466
accent
#D84FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80