#2C40AB#2C40AB
#2C40AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.172 H 269.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40AB |
|---|---|
| RGB | rgb(44, 64, 171) |
| HSL | hsl(231, 59%, 42%) |
| HSV | hsv(231, 74%, 67%) |
| CMYK | cmyk(74.3%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(32.13, 30.32, -59.49) |
| CIE-LCH | lch(32.13, 66.77, 297.00°) |
| OKLab | oklab(42.67% -0.0018 -0.1719) |
| OKLCH | oklch(42.67% 0.172 269.4) |
| XYZ | xyz(10.2203, 7.1415, 39.3600) |
| Luminance | 0.0714 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.36
Blue Blue
#2242C7
ΔE00 3.71
Cobalt
#0047AB
ΔE00 4.44
Blueberry
#464196
ΔE00 4.97
Ocean Blue
#4F42B5
ΔE00 5.14
Cobalt (survey)
#1E488F
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40AB #AB972C
analogous
#2C80AB #2C40AB #572CAB
triadic
#2C40AB #AB2C40 #40AB2C
tetradic
#2C40AB #AB2C80 #AB972C #2CAB57
square
#2C40AB #AB2C80 #AB972C #2CAB57
split-complementary
#2C40AB #AB572C #80AB2C
monochromatic
#131C4A #1F2E7A #2C40AB #455BCF #7686DC
Accessibility & contrast
On white
8.65
#2C40AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2C40AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40AB
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40AB | 1.00 | 8.65 | 2.43 | 8.65 |
| #FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2c40ab; /* rgb */ color: rgb(44, 64, 171); /* oklch */ color: oklch(42.7% 0.172 269.4);
Tailwind
colors: {
custom: {
50: '#7874c5',
500: '#2c40ab',
950: '#000000',
},
}SCSS
$custom: #2c40ab; $custom-light: #7874c5; $custom-dark: #000000;
JSON
{
"hex": "#2c40ab",
"rgb": {
"r": 44,
"g": 64,
"b": 171
},
"hsl": {
"h": 230.551,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.42674,
"c": 0.1719,
"h": 269.4
},
"luminance": 0.07143
}Semantic roles & 50–950 ramp
primary
#2C40AB
secondary
#C3B66F
accent
#CA46E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82