#37227F#37227F
#37227F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.147 H 286.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #37227F |
|---|---|
| RGB | rgb(55, 34, 127) |
| HSL | hsl(254, 58%, 32%) |
| HSV | hsv(254, 73%, 50%) |
| CMYK | cmyk(56.7%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(21.90, 35.46, -49.16) |
| CIE-LCH | lch(21.90, 60.61, 305.81°) |
| OKLab | oklab(34.23% 0.0407 -0.1414) |
| OKLCH | oklch(34.23% 0.147 286.1) |
| XYZ | xyz(5.9772, 3.4883, 20.4329) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.67
Indigo (survey)
#380282
ΔE00 5.37
Royal
#0C1793
ΔE00 5.54
Indigo
#4B0082
ΔE00 6.27
Darkblue
#00008B
ΔE00 7.47
Indigo Blue
#3A18B1
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#37227F #6A7F22
analogous
#223C7F #37227F #66227F
triadic
#37227F #7F3722 #227F37
tetradic
#37227F #7F223C #6A7F22 #227F66
square
#37227F #7F223C #6A7F22 #227F66
split-complementary
#37227F #7F6622 #3C7F22
monochromatic
#0D081E #22154F #37227F #4C2FAF #6A4CCF
Accessibility & contrast
On white
12.37
#37227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#37227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #37227F
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##37227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##37227F | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#173B4E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #37227f; /* rgb */ color: rgb(55, 34, 127); /* oklch */ color: oklch(34.2% 0.147 286.1);
Tailwind
colors: {
custom: {
50: '#765fa5',
500: '#37227f',
950: '#000000',
},
}SCSS
$custom: #37227f; $custom-light: #765fa5; $custom-dark: #000000;
JSON
{
"hex": "#37227f",
"rgb": {
"r": 55,
"g": 34,
"b": 127
},
"hsl": {
"h": 253.548,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.34225,
"c": 0.14711,
"h": 286.1
},
"luminance": 0.03489
}Semantic roles & 50–950 ramp
primary
#37227F
secondary
#9AB24B
accent
#E147BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F