#382CA2#382CA2
#382CA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.180 H 278.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #382CA2 |
|---|---|
| RGB | rgb(56, 44, 162) |
| HSL | hsl(246, 57%, 40%) |
| HSV | hsv(246, 73%, 64%) |
| CMYK | cmyk(65.4%, 72.8%, 0%, 36.5%) |
| CIE-LAB | lab(27.44, 41.11, -61.74) |
| CIE-LCH | lch(27.44, 74.17, 303.66°) |
| OKLab | oklab(39.22% 0.0271 -0.1782) |
| OKLCH | oklch(39.22% 0.18 278.6) |
| XYZ | xyz(9.0511, 5.2500, 34.7118) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.27
Sapphire (survey)
#2138AB
ΔE00 4.59
Royal
#0C1793
ΔE00 6.02
Blueberry
#464196
ΔE00 6.48
Ocean Blue
#4F42B5
ΔE00 6.67
Cobalt Blue
#030AA7
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#382CA2 #96A22C
analogous
#2C5BA2 #382CA2 #732CA2
triadic
#382CA2 #A2382C #2CA238
tetradic
#382CA2 #A22C5B #96A22C #2CA273
square
#382CA2 #A22C5B #96A22C #2CA273
split-complementary
#382CA2 #A2732C #5BA22C
monochromatic
#171242 #271F72 #382CA2 #4E40CB #7B70D8
Accessibility & contrast
On white
10.24
#382CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#382CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #382CA2
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##382CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##382CA2 | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #382ca2; /* rgb */ color: rgb(56, 44, 162); /* oklch */ color: oklch(39.2% 0.180 278.6);
Tailwind
colors: {
custom: {
50: '#7d67bf',
500: '#382ca2',
950: '#000000',
},
}SCSS
$custom: #382ca2; $custom-light: #7d67bf; $custom-dark: #000000;
JSON
{
"hex": "#382ca2",
"rgb": {
"r": 56,
"g": 44,
"b": 162
},
"hsl": {
"h": 246.102,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.39216,
"c": 0.18025,
"h": 278.6
},
"luminance": 0.05251
}Semantic roles & 50–950 ramp
primary
#382CA2
secondary
#B7BF6A
accent
#E147D1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81