#3A2F7D#3A2F7D
#3A2F7D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.127 H 284.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2F7D |
|---|---|
| RGB | rgb(58, 47, 125) |
| HSL | hsl(248, 45%, 34%) |
| HSV | hsv(248, 62%, 49%) |
| CMYK | cmyk(53.6%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(24.99, 27.38, -42.84) |
| CIE-LCH | lch(24.99, 50.84, 302.58°) |
| OKLab | oklab(36.48% 0.032 -0.1227) |
| OKLCH | oklch(36.48% 0.127 284.6) |
| XYZ | xyz(6.4620, 4.4129, 19.9093) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.44
Blueberry
#464196
ΔE00 6.07
Midnight Blue
#191970
ΔE00 6.75
Sapphire (survey)
#2138AB
ΔE00 8.17
Royal
#0C1793
ΔE00 8.21
Rebeccapurple
#663399
ΔE00 8.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2F7D #727D2F
analogous
#2F4B7D #3A2F7D #612F7D
triadic
#3A2F7D #7D3A2F #2F7D3A
tetradic
#3A2F7D #7D2F4B #727D2F #2F7D61
square
#3A2F7D #7D2F4B #727D2F #2F7D61
split-complementary
#3A2F7D #7D612F #4B7D2F
monochromatic
#110E24 #251E51 #3A2F7D #4F40A9 #7062C4
Accessibility & contrast
On white
11.15
#3A2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#3A2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2F7D
11.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2F7D | 1.00 | 11.15 | 1.88 | 11.15 |
| #FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#204151
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3a2f7d; /* rgb */ color: rgb(58, 47, 125); /* oklch */ color: oklch(36.5% 0.127 284.6);
Tailwind
colors: {
custom: {
50: '#7668a3',
500: '#3a2f7d',
950: '#000000',
},
}SCSS
$custom: #3a2f7d; $custom-light: #7668a3; $custom-dark: #000000;
JSON
{
"hex": "#3a2f7d",
"rgb": {
"r": 58,
"g": 47,
"b": 125
},
"hsl": {
"h": 248.462,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.36478,
"c": 0.12683,
"h": 284.6
},
"luminance": 0.04413
}Semantic roles & 50–950 ramp
primary
#3A2F7D
secondary
#A0AB5D
accent
#D553C3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F