#3B236E#3B236E
#3B236E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.2% C 0.123 H 293.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3B236E |
|---|---|
| RGB | rgb(59, 35, 110) |
| HSL | hsl(259, 52%, 28%) |
| HSV | hsv(259, 68%, 43%) |
| CMYK | cmyk(46.4%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(21.05, 30.35, -39.65) |
| CIE-LCH | lch(21.05, 49.94, 307.43°) |
| OKLab | oklab(33.25% 0.0487 -0.1133) |
| OKLCH | oklch(33.25% 0.123 293.2) |
| XYZ | xyz(5.2184, 3.2575, 15.1026) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.74
Royal Purple (survey)
#4B006E
ΔE00 6.99
Indigo (survey)
#380282
ΔE00 7.10
Indigo
#4B0082
ΔE00 7.21
Dark Indigo
#1F0954
ΔE00 7.32
Darkslateblue
#483D8B
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B236E #566E23
analogous
#23306E #3B236E #60236E
triadic
#3B236E #6E3B23 #236E3B
tetradic
#3B236E #6E2330 #566E23 #236E60
square
#3B236E #6E2330 #566E23 #236E60
split-complementary
#3B236E #6E6023 #306E23
monochromatic
#0C0717 #221440 #3B236E #54329C #6F47C4
Accessibility & contrast
On white
12.71
#3B236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3B236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B236E
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B236E | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#2D3545
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3b236e; /* rgb */ color: rgb(59, 35, 110); /* oklch */ color: oklch(33.2% 0.123 293.2);
Tailwind
colors: {
custom: {
50: '#765f98',
500: '#3b236e',
950: '#000000',
},
}SCSS
$custom: #3b236e; $custom-light: #765f98; $custom-dark: #000000;
JSON
{
"hex": "#3b236e",
"rgb": {
"r": 59,
"g": 35,
"b": 110
},
"hsl": {
"h": 259.2,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.33248,
"c": 0.12333,
"h": 293.2
},
"luminance": 0.03258
}Semantic roles & 50–950 ramp
primary
#3B236E
secondary
#86A14C
accent
#DB4DAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E