#332EA6#332EA6
#332EA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.184 H 275.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).
Color values
| HEX | #332EA6 |
|---|---|
| RGB | rgb(51, 46, 166) |
| HSL | hsl(243, 57%, 42%) |
| HSV | hsv(243, 72%, 65%) |
| CMYK | cmyk(69.3%, 72.3%, 0%, 34.9%) |
| CIE-LAB | lab(27.87, 40.66, -63.45) |
| CIE-LCH | lch(27.87, 75.36, 302.65°) |
| OKLab | oklab(39.55% 0.0184 -0.1834) |
| OKLCH | oklch(39.55% 0.184 275.7) |
| XYZ | xyz(9.2229, 5.4101, 36.6272) |
| Luminance | 0.0541 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.67
Indigo Blue
#3A18B1
ΔE00 4.66
Royal
#0C1793
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.35
Blueberry
#464196
ΔE00 6.39
True Blue
#010FCC
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332EA6 #A1A62E
analogous
#2E65A6 #332EA6 #6F2EA6
triadic
#332EA6 #A6332E #2EA633
tetradic
#332EA6 #A62E65 #A1A62E #2EA66F
square
#332EA6 #A62E65 #A1A62E #2EA66F
split-complementary
#332EA6 #A66F2E #65A62E
monochromatic
#161346 #242176 #332EA6 #4B46CC #7A76D9
Accessibility & contrast
On white
10.09
#332EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#332EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332EA6
10.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332EA6 | 1.00 | 10.09 | 2.08 | 10.09 |
| #FFFFFF | 10.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #332ea6; /* rgb */ color: rgb(51, 46, 166); /* oklch */ color: oklch(39.6% 0.184 275.7);
Tailwind
colors: {
custom: {
50: '#7b68c2',
500: '#332ea6',
950: '#000000',
},
}SCSS
$custom: #332ea6; $custom-light: #7b68c2; $custom-dark: #000000;
JSON
{
"hex": "#332ea6",
"rgb": {
"r": 51,
"g": 46,
"b": 166
},
"hsl": {
"h": 242.5,
"s": 56.604,
"l": 41.569
},
"oklch": {
"l": 0.39551,
"c": 0.18428,
"h": 275.7
},
"luminance": 0.05411
}Semantic roles & 50–950 ramp
primary
#332EA6
secondary
#BDC16F
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81