#30237F#30237F
#30237F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.147 H 281.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #30237F |
|---|---|
| RGB | rgb(48, 35, 127) |
| HSL | hsl(248, 57%, 32%) |
| HSV | hsv(248, 72%, 50%) |
| CMYK | cmyk(62.2%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(21.44, 33.75, -49.94) |
| CIE-LCH | lch(21.44, 60.27, 304.05°) |
| OKLab | oklab(33.73% 0.0293 -0.1439) |
| OKLCH | oklch(33.73% 0.147 281.5) |
| XYZ | xyz(5.6495, 3.3624, 20.4259) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.94
Royal
#0C1793
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.99
Dark Royal Blue
#02066F
ΔE00 7.18
Darkblue
#00008B
ΔE00 7.26
Indigo
#4B0082
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30237F #727F23
analogous
#23447F #30237F #5E237F
triadic
#30237F #7F3023 #237F30
tetradic
#30237F #7F2344 #727F23 #237F5E
square
#30237F #7F2344 #727F23 #237F5E
split-complementary
#30237F #7F5E23 #447F23
monochromatic
#0C091F #1E164F #30237F #4230AF #604ECE
Accessibility & contrast
On white
12.56
#30237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#30237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30237F
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30237F | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #30237f; /* rgb */ color: rgb(48, 35, 127); /* oklch */ color: oklch(33.7% 0.147 281.5);
Tailwind
colors: {
custom: {
50: '#725fa5',
500: '#30237f',
950: '#000000',
},
}SCSS
$custom: #30237f; $custom-light: #725fa5; $custom-dark: #000000;
JSON
{
"hex": "#30237f",
"rgb": {
"r": 48,
"g": 35,
"b": 127
},
"hsl": {
"h": 248.478,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.33731,
"c": 0.14686,
"h": 281.5
},
"luminance": 0.03363
}Semantic roles & 50–950 ramp
primary
#30237F
secondary
#A3B14C
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F