#3B277B#3B277B
#3B277B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.135 H 288.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3B277B |
|---|---|
| RGB | rgb(59, 39, 123) |
| HSL | hsl(254, 52%, 32%) |
| HSV | hsv(254, 68%, 48%) |
| CMYK | cmyk(52%, 68.3%, 0%, 51.8%) |
| CIE-LAB | lab(23.04, 31.97, -44.75) |
| CIE-LCH | lch(23.04, 55.00, 305.54°) |
| OKLab | oklab(35.03% 0.0425 -0.1283) |
| OKLCH | oklch(35.03% 0.135 288.3) |
| XYZ | xyz(6.1033, 3.8106, 19.1490) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.54
Darkslateblue
#483D8B
ΔE00 6.35
Indigo (survey)
#380282
ΔE00 6.81
Royal
#0C1793
ΔE00 7.11
Indigo
#4B0082
ΔE00 7.20
Blueberry
#464196
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B277B #677B27
analogous
#273D7B #3B277B #65277B
triadic
#3B277B #7B3B27 #277B3B
tetradic
#3B277B #7B273D #677B27 #277B65
square
#3B277B #7B273D #677B27 #277B65
split-complementary
#3B277B #7B6527 #3D7B27
monochromatic
#0E0A1E #25184D #3B277B #5136A9 #7054C9
Accessibility & contrast
On white
11.92
#3B277B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#3B277B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B277B
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B277B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B277B | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#243C4D
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3b277b; /* rgb */ color: rgb(59, 39, 123); /* oklch */ color: oklch(35.0% 0.135 288.3);
Tailwind
colors: {
custom: {
50: '#7762a2',
500: '#3b277b',
950: '#000000',
},
}SCSS
$custom: #3b277b; $custom-light: #7762a2; $custom-dark: #000000;
JSON
{
"hex": "#3b277b",
"rgb": {
"r": 59,
"g": 39,
"b": 123
},
"hsl": {
"h": 254.286,
"s": 51.852,
"l": 31.765
},
"oklch": {
"l": 0.35026,
"c": 0.13517,
"h": 288.3
},
"luminance": 0.03811
}Semantic roles & 50–950 ramp
primary
#3B277B
secondary
#97AD51
accent
#DB4CB9
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#09050F
muted
#7B797F