#331AB3#331AB3
#331AB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.6% C 0.217 H 276.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).
Color values
| HEX | #331AB3 |
|---|---|
| RGB | rgb(51, 26, 179) |
| HSL | hsl(250, 75%, 40%) |
| HSV | hsv(250, 85%, 70%) |
| CMYK | cmyk(71.5%, 85.5%, 0%, 29.8%) |
| CIE-LAB | lab(25.85, 54.61, -74.61) |
| CIE-LCH | lch(25.85, 92.46, 306.20°) |
| OKLab | oklab(38.56% 0.0242 -0.2155) |
| OKLCH | oklch(38.56% 0.217 276.4) |
| XYZ | xyz(9.8687, 4.6963, 43.0255) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 0.79
Ultramarine
#2000B1
ΔE00 3.26
True Blue
#010FCC
ΔE00 3.34
Mediumblue
#0000CD
ΔE00 3.78
Cobalt Blue
#030AA7
ΔE00 4.15
Royal Blue (survey)
#0504AA
ΔE00 4.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331AB3 #9AB31A
analogous
#1A4DB3 #331AB3 #7F1AB3
triadic
#331AB3 #B3331A #1AB333
tetradic
#331AB3 #B31A4D #9AB31A #1AB37F
square
#331AB3 #B31A4D #9AB31A #1AB37F
split-complementary
#331AB3 #B37F1A #4DB31A
monochromatic
#150A48 #24127E #331AB3 #482AE0 #7660E8
Accessibility & contrast
On white
10.83
#331AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#331AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331AB3
10.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331AB3 | 1.00 | 10.83 | 1.94 | 10.83 |
| #FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0037B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #331ab3; /* rgb */ color: rgb(51, 26, 179); /* oklch */ color: oklch(38.6% 0.217 276.4);
Tailwind
colors: {
custom: {
50: '#805ecb',
500: '#331ab3',
950: '#000000',
},
}SCSS
$custom: #331ab3; $custom-light: #805ecb; $custom-dark: #000000;
JSON
{
"hex": "#331ab3",
"rgb": {
"r": 51,
"g": 26,
"b": 179
},
"hsl": {
"h": 249.804,
"s": 74.634,
"l": 40.196
},
"oklch": {
"l": 0.38556,
"c": 0.21691,
"h": 276.4
},
"luminance": 0.04697
}Semantic roles & 50–950 ramp
primary
#331AB3
secondary
#BACC5D
accent
#F137D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982