#331F9F#331F9F
#331F9F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 278.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #331F9F |
|---|---|
| RGB | rgb(51, 31, 159) |
| HSL | hsl(249, 67%, 37%) |
| HSV | hsv(249, 81%, 62%) |
| CMYK | cmyk(67.9%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(24.28, 46.52, -65.13) |
| CIE-LCH | lch(24.28, 80.04, 305.54°) |
| OKLab | oklab(36.8% 0.0284 -0.1881) |
| OKLCH | oklch(36.8% 0.19 278.6) |
| XYZ | xyz(8.1112, 4.1863, 33.1748) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.76
Royal
#0C1793
ΔE00 3.88
Cobalt Blue
#030AA7
ΔE00 4.15
Ultramarine
#2000B1
ΔE00 4.32
Royal Blue (survey)
#0504AA
ΔE00 4.51
True Blue
#010FCC
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331F9F #8B9F1F
analogous
#1F4B9F #331F9F #731F9F
triadic
#331F9F #9F331F #1F9F33
tetradic
#331F9F #9F1F4B #8B9F1F #1F9F73
square
#331F9F #9F1F4B #8B9F1F #1F9F73
split-complementary
#331F9F #9F731F #4B9F1F
monochromatic
#120B39 #23156C #331F9F #4329D2 #6E5ADF
Accessibility & contrast
On white
11.43
#331F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#331F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331F9F
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331F9F | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #331f9f; /* rgb */ color: rgb(51, 31, 159); /* oklch */ color: oklch(36.8% 0.190 278.6);
Tailwind
colors: {
custom: {
50: '#7b5fbd',
500: '#331f9f',
950: '#000000',
},
}SCSS
$custom: #331f9f; $custom-light: #7b5fbd; $custom-dark: #000000;
JSON
{
"hex": "#331f9f",
"rgb": {
"r": 51,
"g": 31,
"b": 159
},
"hsl": {
"h": 249.375,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.36797,
"c": 0.19026,
"h": 278.6
},
"luminance": 0.04187
}Semantic roles & 50–950 ramp
primary
#331F9F
secondary
#B2C357
accent
#EA3ECF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981