#3A2F97#3A2F97
#3A2F97 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.162 H 280.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2F97 |
|---|---|
| RGB | rgb(58, 47, 151) |
| HSL | hsl(246, 53%, 39%) |
| HSV | hsv(246, 69%, 59%) |
| CMYK | cmyk(61.6%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(27.20, 36.01, -55.41) |
| CIE-LCH | lch(27.20, 66.08, 303.02°) |
| OKLab | oklab(38.77% 0.0294 -0.1596) |
| OKLCH | oklch(38.77% 0.162 280.4) |
| XYZ | xyz(8.3456, 5.1663, 29.8296) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.87
Darkslateblue
#483D8B
ΔE00 5.21
Blueberry
#464196
ΔE00 5.31
Indigo Blue
#3A18B1
ΔE00 5.87
Royal
#0C1793
ΔE00 6.49
Ocean Blue
#4F42B5
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2F97 #8C972F
analogous
#2F5897 #3A2F97 #6E2F97
triadic
#3A2F97 #973A2F #2F973A
tetradic
#3A2F97 #972F58 #8C972F #2F976E
square
#3A2F97 #972F58 #8C972F #2F976E
split-complementary
#3A2F97 #976E2F #58972F
monochromatic
#16123A #282068 #3A2F97 #4E40C3 #796ED2
Accessibility & contrast
On white
10.33
#3A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#3A2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2F97
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2F97 | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #3a2f97; /* rgb */ color: rgb(58, 47, 151); /* oklch */ color: oklch(38.8% 0.162 280.4);
Tailwind
colors: {
custom: {
50: '#7b69b7',
500: '#3a2f97',
950: '#000000',
},
}SCSS
$custom: #3a2f97; $custom-light: #7b69b7; $custom-dark: #000000;
JSON
{
"hex": "#3a2f97",
"rgb": {
"r": 58,
"g": 47,
"b": 151
},
"hsl": {
"h": 246.346,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.38774,
"c": 0.16231,
"h": 280.4
},
"luminance": 0.05167
}Semantic roles & 50–950 ramp
primary
#3A2F97
secondary
#B1B968
accent
#DC4CCD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80