#2C40A0#2C40A0
#2C40A0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.157 H 269.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40A0 |
|---|---|
| RGB | rgb(44, 64, 160) |
| HSL | hsl(230, 57%, 40%) |
| HSV | hsv(230, 73%, 63%) |
| CMYK | cmyk(72.5%, 60%, 0%, 37.3%) |
| CIE-LAB | lab(31.21, 26.22, -54.38) |
| CIE-LCH | lch(31.21, 60.38, 295.74°) |
| OKLab | oklab(41.71% -0.0017 -0.1569) |
| OKLCH | oklch(41.71% 0.157 269.4) |
| XYZ | xyz(9.2151, 6.7394, 34.0661) |
| Luminance | 0.0674 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.03
Cobalt
#0047AB
ΔE00 4.29
Blueberry
#464196
ΔE00 4.41
Blue Blue
#2242C7
ΔE00 5.27
Cobalt (survey)
#1E488F
ΔE00 5.37
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40A0 #A08C2C
analogous
#2C7AA0 #2C40A0 #522CA0
triadic
#2C40A0 #A02C40 #40A02C
tetradic
#2C40A0 #A02C7A #A08C2C #2CA052
square
#2C40A0 #A02C7A #A08C2C #2CA052
split-complementary
#2C40A0 #A0522C #7AA02C
monochromatic
#121A40 #1F2D70 #2C40A0 #3F57CA #6F81D7
Accessibility & contrast
On white
8.94
#2C40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2C40A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40A0
8.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40A0 | 1.00 | 8.94 | 2.35 | 8.94 |
| #FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2c40a0; /* rgb */ color: rgb(44, 64, 160); /* oklch */ color: oklch(41.7% 0.157 269.4);
Tailwind
colors: {
custom: {
50: '#7574bd',
500: '#2c40a0',
950: '#000000',
},
}SCSS
$custom: #2c40a0; $custom-light: #7574bd; $custom-dark: #000000;
JSON
{
"hex": "#2c40a0",
"rgb": {
"r": 44,
"g": 64,
"b": 160
},
"hsl": {
"h": 229.655,
"s": 56.863,
"l": 40
},
"oklch": {
"l": 0.41705,
"c": 0.1569,
"h": 269.4
},
"luminance": 0.0674
}Semantic roles & 50–950 ramp
primary
#2C40A0
secondary
#BFB069
accent
#C648E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81