#2C31A6#2C31A6
#2C31A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.183 H 272.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2C31A6 |
|---|---|
| RGB | rgb(44, 49, 166) |
| HSL | hsl(238, 58%, 41%) |
| HSV | hsv(238, 73%, 65%) |
| CMYK | cmyk(73.5%, 70.5%, 0%, 34.9%) |
| CIE-LAB | lab(28.07, 38.08, -63.14) |
| CIE-LCH | lch(28.07, 73.73, 301.09°) |
| OKLab | oklab(39.57% 0.0081 -0.1826) |
| OKLCH | oklch(39.57% 0.183 272.5) |
| XYZ | xyz(9.0176, 5.4844, 36.6523) |
| Luminance | 0.0549 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.49
Indigo Blue
#3A18B1
ΔE00 5.74
Blueberry
#464196
ΔE00 6.07
Ocean Blue
#4F42B5
ΔE00 6.30
Blue Blue
#2242C7
ΔE00 6.37
Royal
#0C1793
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C31A6 #A6A12C
analogous
#2C6EA6 #2C31A6 #642CA6
triadic
#2C31A6 #A62C31 #31A62C
tetradic
#2C31A6 #A62C6E #A6A12C #2CA664
square
#2C31A6 #A62C6E #A6A12C #2CA664
split-complementary
#2C31A6 #A6642C #6EA62C
monochromatic
#121445 #1F2376 #2C31A6 #4248CD #7377DA
Accessibility & contrast
On white
10.01
#2C31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#2C31A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C31A6
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C31A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C31A6 | 1.00 | 10.01 | 2.10 | 10.01 |
| #FFFFFF | 10.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.01 | 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: #2c31a6; /* rgb */ color: rgb(44, 49, 166); /* oklch */ color: oklch(39.6% 0.183 272.5);
Tailwind
colors: {
custom: {
50: '#786ac2',
500: '#2c31a6',
950: '#000000',
},
}SCSS
$custom: #2c31a6; $custom-light: #786ac2; $custom-dark: #000000;
JSON
{
"hex": "#2c31a6",
"rgb": {
"r": 44,
"g": 49,
"b": 166
},
"hsl": {
"h": 237.541,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.39574,
"c": 0.18281,
"h": 272.5
},
"luminance": 0.05485
}Semantic roles & 50–950 ramp
primary
#2C31A6
secondary
#C1BE6D
accent
#DB46E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81