#332CA4#332CA4
#332CA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.184 H 276.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #332CA4 |
|---|---|
| RGB | rgb(51, 44, 164) |
| HSL | hsl(244, 58%, 41%) |
| HSV | hsv(244, 73%, 64%) |
| CMYK | cmyk(68.9%, 73.2%, 0%, 35.7%) |
| CIE-LAB | lab(27.25, 41.16, -63.26) |
| CIE-LCH | lch(27.25, 75.47, 303.05°) |
| OKLab | oklab(39.05% 0.02 -0.1828) |
| OKLCH | oklch(39.05% 0.184 276.2) |
| XYZ | xyz(8.9646, 5.1847, 35.6431) |
| Luminance | 0.0519 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.15
Indigo Blue
#3A18B1
ΔE00 4.32
Royal
#0C1793
ΔE00 5.84
Cobalt Blue
#030AA7
ΔE00 6.48
True Blue
#010FCC
ΔE00 6.50
Ultramarine
#2000B1
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332CA4 #9DA42C
analogous
#2C61A4 #332CA4 #6F2CA4
triadic
#332CA4 #A4332C #2CA433
tetradic
#332CA4 #A42C61 #9DA42C #2CA46F
square
#332CA4 #A42C61 #9DA42C #2CA46F
split-complementary
#332CA4 #A46F2C #61A42C
monochromatic
#151243 #241F74 #332CA4 #4941CC #7771D9
Accessibility & contrast
On white
10.31
#332CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#332CA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332CA4
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332CA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332CA4 | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332ca4; /* rgb */ color: rgb(51, 44, 164); /* oklch */ color: oklch(39.1% 0.184 276.2);
Tailwind
colors: {
custom: {
50: '#7b67c0',
500: '#332ca4',
950: '#000000',
},
}SCSS
$custom: #332ca4; $custom-light: #7b67c0; $custom-dark: #000000;
JSON
{
"hex": "#332ca4",
"rgb": {
"r": 51,
"g": 44,
"b": 164
},
"hsl": {
"h": 243.5,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.3905,
"c": 0.18388,
"h": 276.2
},
"luminance": 0.05186
}Semantic roles & 50–950 ramp
primary
#332CA4
secondary
#BBC06B
accent
#E147D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81