#30217F#30217F
#30217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.149 H 282.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #30217F |
|---|---|
| RGB | rgb(48, 33, 127) |
| HSL | hsl(250, 59%, 31%) |
| HSV | hsv(250, 74%, 50%) |
| CMYK | cmyk(62.2%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(21.01, 34.94, -50.64) |
| CIE-LCH | lch(21.01, 61.53, 304.60°) |
| OKLab | oklab(33.42% 0.0309 -0.146) |
| OKLCH | oklch(33.42% 0.149 282) |
| XYZ | xyz(5.5923, 3.2480, 20.4068) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.78
Royal
#0C1793
ΔE00 4.73
Indigo (survey)
#380282
ΔE00 5.47
Dark Royal Blue
#02066F
ΔE00 6.80
Darkblue
#00008B
ΔE00 6.82
Indigo
#4B0082
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30217F #707F21
analogous
#21417F #30217F #5F217F
triadic
#30217F #7F3021 #217F30
tetradic
#30217F #7F2141 #707F21 #217F5F
square
#30217F #7F2141 #707F21 #217F5F
split-complementary
#30217F #7F5F21 #417F21
monochromatic
#0B081E #1E144E #30217F #422EB0 #604AD0
Accessibility & contrast
On white
12.73
#30217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#30217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30217F
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30217F | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #30217f; /* rgb */ color: rgb(48, 33, 127); /* oklch */ color: oklch(33.4% 0.149 282.0);
Tailwind
colors: {
custom: {
50: '#735ea5',
500: '#30217f',
950: '#000000',
},
}SCSS
$custom: #30217f; $custom-light: #735ea5; $custom-dark: #000000;
JSON
{
"hex": "#30217f",
"rgb": {
"r": 48,
"g": 33,
"b": 127
},
"hsl": {
"h": 249.574,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33425,
"c": 0.1492,
"h": 282
},
"luminance": 0.03248
}Semantic roles & 50–950 ramp
primary
#30217F
secondary
#A1B24A
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F