#30317C#30317C
#30317C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.124 H 277.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #30317C |
|---|---|
| RGB | rgb(48, 49, 124) |
| HSL | hsl(239, 44%, 34%) |
| HSV | hsv(239, 61%, 49%) |
| CMYK | cmyk(61.3%, 60.5%, 0%, 51.4%) |
| CIE-LAB | lab(24.58, 23.68, -42.92) |
| CIE-LCH | lch(24.58, 49.02, 298.89°) |
| OKLab | oklab(35.93% 0.0163 -0.1233) |
| OKLCH | oklch(35.93% 0.124 277.5) |
| XYZ | xyz(5.9542, 4.2798, 19.5772) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.04
Blueberry
#464196
ΔE00 6.10
Midnight Blue
#191970
ΔE00 6.79
Sapphire (survey)
#2138AB
ΔE00 7.43
Marine
#042E60
ΔE00 7.93
Royal
#0C1793
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30317C #7C7B30
analogous
#30577C #30317C #55307C
triadic
#30317C #7C3031 #317C30
tetradic
#30317C #7C3057 #7C7B30 #307C55
square
#30317C #7C3057 #7C7B30 #307C55
split-complementary
#30317C #7C5530 #577C30
monochromatic
#0E0E24 #1F2050 #30317C #4142A8 #6465C3
Accessibility & contrast
On white
11.31
#30317C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#30317C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30317C
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30317C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30317C | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #30317c; /* rgb */ color: rgb(48, 49, 124); /* oklch */ color: oklch(35.9% 0.124 277.5);
Tailwind
colors: {
custom: {
50: '#7169a3',
500: '#30317c',
950: '#000000',
},
}SCSS
$custom: #30317c; $custom-light: #7169a3; $custom-dark: #000000;
JSON
{
"hex": "#30317c",
"rgb": {
"r": 48,
"g": 49,
"b": 124
},
"hsl": {
"h": 239.211,
"s": 44.186,
"l": 33.725
},
"oklch": {
"l": 0.35933,
"c": 0.12435,
"h": 277.5
},
"luminance": 0.0428
}Semantic roles & 50–950 ramp
primary
#30317C
secondary
#AAA95E
accent
#D254D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F