#2B31A6#2B31A6
#2B31A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.183 H 272.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2B31A6 |
|---|---|
| RGB | rgb(43, 49, 166) |
| HSL | hsl(237, 59%, 41%) |
| HSV | hsv(237, 74%, 65%) |
| CMYK | cmyk(74.1%, 70.5%, 0%, 34.9%) |
| CIE-LAB | lab(28.01, 37.97, -63.24) |
| CIE-LCH | lch(28.01, 73.76, 300.98°) |
| OKLab | oklab(39.52% 0.0069 -0.1829) |
| OKLCH | oklch(39.52% 0.183 272.2) |
| XYZ | xyz(8.9752, 5.4625, 36.6504) |
| Luminance | 0.0546 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.43
Indigo Blue
#3A18B1
ΔE00 5.80
Blueberry
#464196
ΔE00 6.11
Blue Blue
#2242C7
ΔE00 6.35
Ocean Blue
#4F42B5
ΔE00 6.36
Royal
#0C1793
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B31A6 #A6A02B
analogous
#2B6EA6 #2B31A6 #622BA6
triadic
#2B31A6 #A62B31 #31A62B
tetradic
#2B31A6 #A62B6E #A6A02B #2BA662
square
#2B31A6 #A62B6E #A6A02B #2BA662
split-complementary
#2B31A6 #A6622B #6EA62B
monochromatic
#121445 #1E2375 #2B31A6 #4147CE #7176DA
Accessibility & contrast
On white
10.04
#2B31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#2B31A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B31A6
10.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B31A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B31A6 | 1.00 | 10.04 | 2.09 | 10.04 |
| #FFFFFF | 10.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2b31a6; /* rgb */ color: rgb(43, 49, 166); /* oklch */ color: oklch(39.5% 0.183 272.2);
Tailwind
colors: {
custom: {
50: '#786ac2',
500: '#2b31a6',
950: '#000000',
},
}SCSS
$custom: #2b31a6; $custom-light: #786ac2; $custom-dark: #000000;
JSON
{
"hex": "#2b31a6",
"rgb": {
"r": 43,
"g": 49,
"b": 166
},
"hsl": {
"h": 237.073,
"s": 58.852,
"l": 40.98
},
"oklch": {
"l": 0.39516,
"c": 0.18307,
"h": 272.2
},
"luminance": 0.05463
}Semantic roles & 50–950 ramp
primary
#2B31A6
secondary
#C1BD6B
accent
#DA46E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81