#332AA8#332AA8
#332AA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.191 H 276.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #332AA8 |
|---|---|
| RGB | rgb(51, 42, 168) |
| HSL | hsl(244, 60%, 41%) |
| HSV | hsv(244, 75%, 66%) |
| CMYK | cmyk(69.6%, 75%, 0%, 34.1%) |
| CIE-LAB | lab(27.26, 43.60, -65.67) |
| CIE-LCH | lch(27.26, 78.83, 303.58°) |
| OKLab | oklab(39.17% 0.0203 -0.1898) |
| OKLCH | oklch(39.17% 0.191 276.1) |
| XYZ | xyz(9.2588, 5.1860, 37.5513) |
| Luminance | 0.0519 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.64
Sapphire (survey)
#2138AB
ΔE00 4.53
Royal
#0C1793
ΔE00 5.77
True Blue
#010FCC
ΔE00 5.80
Cobalt Blue
#030AA7
ΔE00 6.05
Ultramarine
#2000B1
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332AA8 #9FA82A
analogous
#2A60A8 #332AA8 #722AA8
triadic
#332AA8 #A8332A #2AA833
tetradic
#332AA8 #A82A60 #9FA82A #2AA872
square
#332AA8 #A82A60 #9FA82A #2AA872
split-complementary
#332AA8 #A8722A #60A82A
monochromatic
#151246 #241E77 #332AA8 #4A40CF #7971DB
Accessibility & contrast
On white
10.31
#332AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#332AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332AA8
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332AA8 | 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)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332aa8; /* rgb */ color: rgb(51, 42, 168); /* oklch */ color: oklch(39.2% 0.191 276.1);
Tailwind
colors: {
custom: {
50: '#7c66c3',
500: '#332aa8',
950: '#000000',
},
}SCSS
$custom: #332aa8; $custom-light: #7c66c3; $custom-dark: #000000;
JSON
{
"hex": "#332aa8",
"rgb": {
"r": 51,
"g": 42,
"b": 168
},
"hsl": {
"h": 244.286,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.39175,
"c": 0.1909,
"h": 276.1
},
"luminance": 0.05187
}Semantic roles & 50–950 ramp
primary
#332AA8
secondary
#BCC36B
accent
#E345D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82