#331F9C#331F9C
#331F9C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.187 H 279.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #331F9C |
|---|---|
| RGB | rgb(51, 31, 156) |
| HSL | hsl(250, 67%, 37%) |
| HSV | hsv(250, 80%, 61%) |
| CMYK | cmyk(67.3%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(23.95, 45.60, -63.85) |
| CIE-LCH | lch(23.95, 78.47, 305.54°) |
| OKLab | oklab(36.47% 0.0293 -0.1844) |
| OKLCH | oklch(36.47% 0.187 279) |
| XYZ | xyz(7.8541, 4.0834, 31.8203) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.13
Royal
#0C1793
ΔE00 3.70
Cobalt Blue
#030AA7
ΔE00 4.25
Ultramarine
#2000B1
ΔE00 4.53
Royal Blue (survey)
#0504AA
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331F9C #889C1F
analogous
#1F4A9C #331F9C #721F9C
triadic
#331F9C #9C331F #1F9C33
tetradic
#331F9C #9C1F4A #889C1F #1F9C72
square
#331F9C #9C1F4A #889C1F #1F9C72
split-complementary
#331F9C #9C721F #4A9C1F
monochromatic
#120B36 #221569 #331F9C #4429CF #6D58DE
Accessibility & contrast
On white
11.56
#331F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#331F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331F9C
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331F9C | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #331f9c; /* rgb */ color: rgb(51, 31, 156); /* oklch */ color: oklch(36.5% 0.187 279.0);
Tailwind
colors: {
custom: {
50: '#7a5fba',
500: '#331f9c',
950: '#000000',
},
}SCSS
$custom: #331f9c; $custom-light: #7a5fba; $custom-dark: #000000;
JSON
{
"hex": "#331f9c",
"rgb": {
"r": 51,
"g": 31,
"b": 156
},
"hsl": {
"h": 249.6,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.36468,
"c": 0.18671,
"h": 279
},
"luminance": 0.04084
}Semantic roles & 50–950 ramp
primary
#331F9C
secondary
#B0C155
accent
#EA3ECE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981