#332F9C#332F9C
#332F9C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.170 H 276.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).
Color values
| HEX | #332F9C |
|---|---|
| RGB | rgb(51, 47, 156) |
| HSL | hsl(242, 54%, 40%) |
| HSV | hsv(242, 70%, 61%) |
| CMYK | cmyk(67.3%, 69.9%, 0%, 38.8%) |
| CIE-LAB | lab(27.12, 36.68, -58.62) |
| CIE-LCH | lch(27.12, 69.15, 302.04°) |
| OKLab | oklab(38.72% 0.0193 -0.1693) |
| OKLCH | oklch(38.72% 0.17 276.5) |
| XYZ | xyz(8.3805, 5.1364, 31.9958) |
| Luminance | 0.0514 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 5.64
Blueberry
#464196
ΔE00 5.70
Darkslateblue
#483D8B
ΔE00 6.01
Royal
#0C1793
ΔE00 6.15
Ocean Blue
#4F42B5
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332F9C #989C2F
analogous
#2F619C #332F9C #6A2F9C
triadic
#332F9C #9C332F #2F9C33
tetradic
#332F9C #9C2F61 #989C2F #2F9C6A
square
#332F9C #9C2F61 #989C2F #2F9C6A
split-complementary
#332F9C #9C6A2F #619C2F
monochromatic
#14133E #24216D #332F9C #4742C6 #7571D4
Accessibility & contrast
On white
10.36
#332F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#332F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332F9C
10.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332F9C | 1.00 | 10.36 | 2.03 | 10.36 |
| #FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #332f9c; /* rgb */ color: rgb(51, 47, 156); /* oklch */ color: oklch(38.7% 0.170 276.5);
Tailwind
colors: {
custom: {
50: '#7968ba',
500: '#332f9c',
950: '#000000',
},
}SCSS
$custom: #332f9c; $custom-light: #7968ba; $custom-dark: #000000;
JSON
{
"hex": "#332f9c",
"rgb": {
"r": 51,
"g": 47,
"b": 156
},
"hsl": {
"h": 242.202,
"s": 53.695,
"l": 39.804
},
"oklch": {
"l": 0.38717,
"c": 0.17035,
"h": 276.5
},
"luminance": 0.05137
}Semantic roles & 50–950 ramp
primary
#332F9C
secondary
#B9BC6B
accent
#DD4BD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81