#2C40A2#2C40A2
#2C40A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.160 H 269.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40A2 |
|---|---|
| RGB | rgb(44, 64, 162) |
| HSL | hsl(230, 57%, 40%) |
| HSV | hsv(230, 73%, 64%) |
| CMYK | cmyk(72.8%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(31.37, 26.97, -55.32) |
| CIE-LCH | lch(31.37, 61.55, 295.99°) |
| OKLab | oklab(41.88% -0.0017 -0.1596) |
| OKLCH | oklch(41.88% 0.16 269.4) |
| XYZ | xyz(9.3915, 6.8099, 34.9949) |
| Luminance | 0.0681 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.85
Cobalt
#0047AB
ΔE00 4.28
Blueberry
#464196
ΔE00 4.47
Blue Blue
#2242C7
ΔE00 4.98
Cobalt (survey)
#1E488F
ΔE00 5.56
Ocean Blue
#4F42B5
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40A2 #A28E2C
analogous
#2C7BA2 #2C40A2 #532CA2
triadic
#2C40A2 #A22C40 #40A22C
tetradic
#2C40A2 #A22C7B #A28E2C #2CA253
square
#2C40A2 #A22C7B #A28E2C #2CA253
split-complementary
#2C40A2 #A2532C #7BA22C
monochromatic
#121A42 #1F2D72 #2C40A2 #4058CB #7082D8
Accessibility & contrast
On white
8.89
#2C40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2C40A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40A2
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40A2 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2c40a2; /* rgb */ color: rgb(44, 64, 162); /* oklch */ color: oklch(41.9% 0.160 269.4);
Tailwind
colors: {
custom: {
50: '#7674be',
500: '#2c40a2',
950: '#000000',
},
}SCSS
$custom: #2c40a2; $custom-light: #7674be; $custom-dark: #000000;
JSON
{
"hex": "#2c40a2",
"rgb": {
"r": 44,
"g": 64,
"b": 162
},
"hsl": {
"h": 229.831,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.41878,
"c": 0.15966,
"h": 269.4
},
"luminance": 0.06811
}Semantic roles & 50–950 ramp
primary
#2C40A2
secondary
#BFB16A
accent
#C747E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81