#2C40A1#2C40A1
#2C40A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.158 H 269.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40A1 |
|---|---|
| RGB | rgb(44, 64, 161) |
| HSL | hsl(230, 57%, 40%) |
| HSV | hsv(230, 73%, 63%) |
| CMYK | cmyk(72.7%, 60.2%, 0%, 36.9%) |
| CIE-LAB | lab(31.29, 26.60, -54.85) |
| CIE-LCH | lch(31.29, 60.96, 295.87°) |
| OKLab | oklab(41.79% -0.0017 -0.1583) |
| OKLCH | oklch(41.79% 0.158 269.4) |
| XYZ | xyz(9.3029, 6.7745, 34.5286) |
| Luminance | 0.0678 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.94
Cobalt
#0047AB
ΔE00 4.28
Blueberry
#464196
ΔE00 4.44
Blue Blue
#2242C7
ΔE00 5.13
Cobalt (survey)
#1E488F
ΔE00 5.46
Ocean Blue
#4F42B5
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40A1 #A18D2C
analogous
#2C7AA1 #2C40A1 #532CA1
triadic
#2C40A1 #A12C40 #40A12C
tetradic
#2C40A1 #A12C7A #A18D2C #2CA153
square
#2C40A1 #A12C7A #A18D2C #2CA153
split-complementary
#2C40A1 #A1532C #7AA12C
monochromatic
#121A41 #1F2D71 #2C40A1 #4057CB #7081D8
Accessibility & contrast
On white
8.92
#2C40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2C40A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40A1
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40A1 | 1.00 | 8.92 | 2.36 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2c40a1; /* rgb */ color: rgb(44, 64, 161); /* oklch */ color: oklch(41.8% 0.158 269.4);
Tailwind
colors: {
custom: {
50: '#7674be',
500: '#2c40a1',
950: '#000000',
},
}SCSS
$custom: #2c40a1; $custom-light: #7674be; $custom-dark: #000000;
JSON
{
"hex": "#2c40a1",
"rgb": {
"r": 44,
"g": 64,
"b": 161
},
"hsl": {
"h": 229.744,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.41791,
"c": 0.15828,
"h": 269.4
},
"luminance": 0.06775
}Semantic roles & 50–950 ramp
primary
#2C40A1
secondary
#BFB06A
accent
#C647E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81