#3B238F#3B238F
#3B238F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.166 H 284.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #3B238F |
|---|---|
| RGB | rgb(59, 35, 143) |
| HSL | hsl(253, 61%, 35%) |
| HSV | hsv(253, 76%, 56%) |
| CMYK | cmyk(58.7%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.05, 40.51, -55.65) |
| CIE-LCH | lch(24.05, 68.83, 306.05°) |
| OKLab | oklab(36.31% 0.0423 -0.1603) |
| OKLCH | oklch(36.31% 0.166 284.8) |
| XYZ | xyz(7.3611, 4.1146, 26.3876) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.85
Indigo Blue
#3A18B1
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.52
Indigo
#4B0082
ΔE00 6.24
Cobalt Blue
#030AA7
ΔE00 6.26
Midnight Blue
#191970
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B238F #778F23
analogous
#23418F #3B238F #71238F
triadic
#3B238F #8F3B23 #238F3B
tetradic
#3B238F #8F2341 #778F23 #238F71
square
#3B238F #8F2341 #778F23 #238F71
split-complementary
#3B238F #8F7123 #418F23
monochromatic
#120B2D #27175E #3B238F #4F2FC0 #7357D6
Accessibility & contrast
On white
11.52
#3B238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3B238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B238F
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B238F | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#0E4157
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3b238f; /* rgb */ color: rgb(59, 35, 143); /* oklch */ color: oklch(36.3% 0.166 284.8);
Tailwind
colors: {
custom: {
50: '#7b61b1',
500: '#3b238f',
950: '#000000',
},
}SCSS
$custom: #3b238f; $custom-light: #7b61b1; $custom-dark: #000000;
JSON
{
"hex": "#3b238f",
"rgb": {
"r": 59,
"g": 35,
"b": 143
},
"hsl": {
"h": 253.333,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.36314,
"c": 0.16574,
"h": 284.8
},
"luminance": 0.04115
}Semantic roles & 50–950 ramp
primary
#3B238F
secondary
#A3BA54
accent
#E444C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980