#2C31B2#2C31B2
#2C31B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.198 H 271.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2C31B2 |
|---|---|
| RGB | rgb(44, 49, 178) |
| HSL | hsl(238, 60%, 44%) |
| HSV | hsv(238, 75%, 70%) |
| CMYK | cmyk(75.3%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(29.27, 42.23, -68.36) |
| CIE-LCH | lch(29.27, 80.35, 301.70°) |
| OKLab | oklab(40.8% 0.0064 -0.1978) |
| OKLCH | oklch(40.8% 0.198 271.8) |
| XYZ | xyz(10.1702, 5.9454, 42.7224) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.78
Indigo Blue
#3A18B1
ΔE00 5.31
Blue Blue
#2242C7
ΔE00 5.45
Ocean Blue
#4F42B5
ΔE00 5.78
Blue With A Hint Of Purple
#533CC6
ΔE00 6.07
True Blue
#010FCC
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C31B2 #B2AD2C
analogous
#2C74B2 #2C31B2 #6A2CB2
triadic
#2C31B2 #B22C31 #31B22C
tetradic
#2C31B2 #B22C74 #B2AD2C #2CB26A
square
#2C31B2 #B22C74 #B2AD2C #2CB26A
split-complementary
#2C31B2 #B26A2C #74B22C
monochromatic
#141650 #202381 #2C31B2 #494ED2 #7A7EDE
Accessibility & contrast
On white
9.59
#2C31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#2C31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C31B2
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C31B2 | 1.00 | 9.59 | 2.19 | 9.59 |
| #FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2c31b2; /* rgb */ color: rgb(44, 49, 178); /* oklch */ color: oklch(40.8% 0.198 271.8);
Tailwind
colors: {
custom: {
50: '#7b6aca',
500: '#2c31b2',
950: '#000000',
},
}SCSS
$custom: #2c31b2; $custom-light: #7b6aca; $custom-dark: #000000;
JSON
{
"hex": "#2c31b2",
"rgb": {
"r": 44,
"g": 49,
"b": 178
},
"hsl": {
"h": 237.761,
"s": 60.36,
"l": 43.529
},
"oklch": {
"l": 0.40798,
"c": 0.19795,
"h": 271.8
},
"luminance": 0.05946
}Semantic roles & 50–950 ramp
primary
#2C31B2
secondary
#C6C373
accent
#DE44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82