#2C31AF#2C31AF
#2C31AF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.194 H 272.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2C31AF |
|---|---|
| RGB | rgb(44, 49, 175) |
| HSL | hsl(238, 60%, 43%) |
| HSV | hsv(238, 75%, 69%) |
| CMYK | cmyk(74.9%, 72%, 0%, 31.4%) |
| CIE-LAB | lab(28.97, 41.20, -67.07) |
| CIE-LCH | lch(28.97, 78.71, 301.56°) |
| OKLab | oklab(40.49% 0.0068 -0.1941) |
| OKLCH | oklch(40.49% 0.194 272) |
| XYZ | xyz(9.8723, 5.8262, 41.1534) |
| Luminance | 0.0583 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.62
Indigo Blue
#3A18B1
ΔE00 5.37
Blue Blue
#2242C7
ΔE00 5.65
Ocean Blue
#4F42B5
ΔE00 5.88
Blue With A Hint Of Purple
#533CC6
ΔE00 6.32
True Blue
#010FCC
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C31AF #AFAA2C
analogous
#2C72AF #2C31AF #682CAF
triadic
#2C31AF #AF2C31 #31AF2C
tetradic
#2C31AF #AF2C72 #AFAA2C #2CAF68
square
#2C31AF #AF2C72 #AFAA2C #2CAF68
split-complementary
#2C31AF #AF682C #72AF2C
monochromatic
#13164D #20237E #2C31AF #474DD1 #787CDD
Accessibility & contrast
On white
9.70
#2C31AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#2C31AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C31AF
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C31AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C31AF | 1.00 | 9.70 | 2.17 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2c31af; /* rgb */ color: rgb(44, 49, 175); /* oklch */ color: oklch(40.5% 0.194 272.0);
Tailwind
colors: {
custom: {
50: '#7a6ac8',
500: '#2c31af',
950: '#000000',
},
}SCSS
$custom: #2c31af; $custom-light: #7a6ac8; $custom-dark: #000000;
JSON
{
"hex": "#2c31af",
"rgb": {
"r": 44,
"g": 49,
"b": 175
},
"hsl": {
"h": 237.71,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.40489,
"c": 0.19421,
"h": 272
},
"luminance": 0.05827
}Semantic roles & 50–950 ramp
primary
#2C31AF
secondary
#C5C272
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82