#2C31C4#2C31C4
#2C31C4 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.220 H 270.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2C31C4 |
|---|---|
| RGB | rgb(44, 49, 196) |
| HSL | hsl(238, 63%, 47%) |
| HSV | hsv(238, 78%, 77%) |
| CMYK | cmyk(77.6%, 75%, 0%, 23.1%) |
| CIE-LAB | lab(31.15, 48.27, -75.90) |
| CIE-LCH | lch(31.15, 89.95, 302.45°) |
| OKLab | oklab(42.69% 0.0035 -0.2198) |
| OKLCH | oklch(42.69% 0.22 270.9) |
| XYZ | xyz(12.0974, 6.7163, 52.8726) |
| Luminance | 0.0672 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.36
Blue Blue
#2242C7
ΔE00 4.73
Blue With A Hint Of Purple
#533CC6
ΔE00 4.89
Blurple
#5539CC
ΔE00 5.04
True Blue
#010FCC
ΔE00 5.65
Ocean Blue
#4F42B5
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C31C4 #C4BF2C
analogous
#2C7DC4 #2C31C4 #732CC4
triadic
#2C31C4 #C42C31 #31C42C
tetradic
#2C31C4 #C42C7D #C4BF2C #2CC473
square
#2C31C4 #C42C7D #C4BF2C #2CC473
split-complementary
#2C31C4 #C4732C #7DC42C
monochromatic
#161860 #212592 #2C31C4 #5459D9 #868AE4
Accessibility & contrast
On white
8.96
#2C31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#2C31C4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C31C4
8.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C31C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C31C4 | 1.00 | 8.96 | 2.34 | 8.96 |
| #FFFFFF | 8.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0042C1
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2c31c4; /* rgb */ color: rgb(44, 49, 196); /* oklch */ color: oklch(42.7% 0.220 270.9);
Tailwind
colors: {
custom: {
50: '#7f6bd7',
500: '#2c31c4',
950: '#000000',
},
}SCSS
$custom: #2c31c4; $custom-light: #7f6bd7; $custom-dark: #000000;
JSON
{
"hex": "#2c31c4",
"rgb": {
"r": 44,
"g": 49,
"b": 196
},
"hsl": {
"h": 238.026,
"s": 63.333,
"l": 47.059
},
"oklch": {
"l": 0.42693,
"c": 0.21983,
"h": 270.9
},
"luminance": 0.06718
}Semantic roles & 50–950 ramp
primary
#2C31C4
secondary
#CDCB7E
accent
#E141E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83