#2C31AD#2C31AD
#2C31AD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.192 H 272.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2C31AD |
|---|---|
| RGB | rgb(44, 49, 173) |
| HSL | hsl(238, 59%, 43%) |
| HSV | hsv(238, 75%, 68%) |
| CMYK | cmyk(74.6%, 71.7%, 0%, 32.2%) |
| CIE-LAB | lab(28.77, 40.51, -66.20) |
| CIE-LCH | lch(28.77, 77.61, 301.46°) |
| OKLab | oklab(40.28% 0.0071 -0.1916) |
| OKLCH | oklch(40.28% 0.192 272.1) |
| XYZ | xyz(9.6773, 5.7482, 40.1266) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.54
Indigo Blue
#3A18B1
ΔE00 5.42
Blue Blue
#2242C7
ΔE00 5.80
Ocean Blue
#4F42B5
ΔE00 5.95
Blueberry
#464196
ΔE00 6.50
Blue With A Hint Of Purple
#533CC6
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C31AD #ADA82C
analogous
#2C72AD #2C31AD #672CAD
triadic
#2C31AD #AD2C31 #31AD2C
tetradic
#2C31AD #AD2C72 #ADA82C #2CAD67
square
#2C31AD #AD2C72 #ADA82C #2CAD67
split-complementary
#2C31AD #AD672C #72AD2C
monochromatic
#13154B #20237C #2C31AD #464CD0 #777BDC
Accessibility & contrast
On white
9.77
#2C31AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#2C31AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C31AD
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C31AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C31AD | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2c31ad; /* rgb */ color: rgb(44, 49, 173); /* oklch */ color: oklch(40.3% 0.192 272.1);
Tailwind
colors: {
custom: {
50: '#7a6ac7',
500: '#2c31ad',
950: '#000000',
},
}SCSS
$custom: #2c31ad; $custom-light: #7a6ac7; $custom-dark: #000000;
JSON
{
"hex": "#2c31ad",
"rgb": {
"r": 44,
"g": 49,
"b": 173
},
"hsl": {
"h": 237.674,
"s": 59.447,
"l": 42.549
},
"oklch": {
"l": 0.40284,
"c": 0.1917,
"h": 272.1
},
"luminance": 0.05749
}Semantic roles & 50–950 ramp
primary
#2C31AD
secondary
#C4C171
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82