#3B277E#3B277E
#3B277E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.139 H 287.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3B277E |
|---|---|
| RGB | rgb(59, 39, 126) |
| HSL | hsl(254, 53%, 32%) |
| HSV | hsv(254, 69%, 49%) |
| CMYK | cmyk(53.2%, 69%, 0%, 50.6%) |
| CIE-LAB | lab(23.29, 32.91, -46.23) |
| CIE-LCH | lch(23.29, 56.75, 305.45°) |
| OKLab | oklab(35.29% 0.0421 -0.1327) |
| OKLCH | oklch(35.29% 0.139 287.6) |
| XYZ | xyz(6.2939, 3.8869, 20.1532) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.57
Darkslateblue
#483D8B
ΔE00 6.26
Indigo (survey)
#380282
ΔE00 6.62
Royal
#0C1793
ΔE00 6.72
Indigo
#4B0082
ΔE00 7.08
Blueberry
#464196
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B277E #6A7E27
analogous
#273F7E #3B277E #66277E
triadic
#3B277E #7E3B27 #277E3B
tetradic
#3B277E #7E273F #6A7E27 #277E66
square
#3B277E #7E273F #6A7E27 #277E66
split-complementary
#3B277E #7E6627 #3F7E27
monochromatic
#0F0A21 #25194F #3B277E #5135AD #7055CA
Accessibility & contrast
On white
11.82
#3B277E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3B277E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B277E
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B277E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B277E | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#223D4F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3b277e; /* rgb */ color: rgb(59, 39, 126); /* oklch */ color: oklch(35.3% 0.139 287.6);
Tailwind
colors: {
custom: {
50: '#7862a4',
500: '#3b277e',
950: '#000000',
},
}SCSS
$custom: #3b277e; $custom-light: #7862a4; $custom-dark: #000000;
JSON
{
"hex": "#3b277e",
"rgb": {
"r": 59,
"g": 39,
"b": 126
},
"hsl": {
"h": 253.793,
"s": 52.727,
"l": 32.353
},
"oklch": {
"l": 0.35293,
"c": 0.13917,
"h": 287.6
},
"luminance": 0.03887
}Semantic roles & 50–950 ramp
primary
#3B277E
secondary
#9AAF52
accent
#DC4CBB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F