#3A38B2#3A38B2
#3A38B2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.8% C 0.187 H 275.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #3A38B2 |
|---|---|
| RGB | rgb(58, 56, 178) |
| HSL | hsl(241, 52%, 46%) |
| HSV | hsv(241, 69%, 70%) |
| CMYK | cmyk(67.4%, 68.5%, 0%, 30.2%) |
| CIE-LAB | lab(31.67, 39.59, -64.38) |
| CIE-LCH | lch(31.67, 75.58, 301.59°) |
| OKLab | oklab(42.75% 0.0187 -0.1859) |
| OKLCH | oklch(42.75% 0.187 275.8) |
| XYZ | xyz(11.1923, 6.9412, 42.8608) |
| Luminance | 0.0694 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Ocean Blue
#4F42B5
ΔE00 3.69
Blue Blue
#2242C7
ΔE00 4.48
Blue With A Hint Of Purple
#533CC6
ΔE00 4.53
Blurple
#5539CC
ΔE00 5.22
Blueberry
#464196
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A38B2 #B0B238
analogous
#3873B2 #3A38B2 #7738B2
triadic
#3A38B2 #B23A38 #38B23A
tetradic
#3A38B2 #B23873 #B0B238 #38B277
square
#3A38B2 #B23873 #B0B238 #38B277
split-complementary
#3A38B2 #B27738 #73B238
monochromatic
#1C1B55 #2B2983 #3A38B2 #5D5CCC #8B8ADA
Accessibility & contrast
On white
8.79
#3A38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#3A38B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A38B2
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A38B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A38B2 | 1.00 | 8.79 | 2.39 | 8.79 |
| #FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #3a38b2; /* rgb */ color: rgb(58, 56, 178); /* oklch */ color: oklch(42.8% 0.187 275.8);
Tailwind
colors: {
custom: {
50: '#806fca',
500: '#3a38b2',
950: '#000000',
},
}SCSS
$custom: #3a38b2; $custom-light: #806fca; $custom-dark: #000000;
JSON
{
"hex": "#3a38b2",
"rgb": {
"r": 58,
"g": 56,
"b": 178
},
"hsl": {
"h": 240.984,
"s": 52.137,
"l": 45.882
},
"oklch": {
"l": 0.42753,
"c": 0.18685,
"h": 275.8
},
"luminance": 0.06942
}Semantic roles & 50–950 ramp
primary
#3A38B2
secondary
#C3C581
accent
#DC4CD9
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82