#2C40A4#2C40A4
#2C40A4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.162 H 269.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2C40A4 |
|---|---|
| RGB | rgb(44, 64, 164) |
| HSL | hsl(230, 58%, 41%) |
| HSV | hsv(230, 73%, 64%) |
| CMYK | cmyk(73.2%, 61%, 0%, 35.7%) |
| CIE-LAB | lab(31.54, 27.72, -56.26) |
| CIE-LCH | lch(31.54, 62.72, 296.23°) |
| OKLab | oklab(42.05% -0.0017 -0.1624) |
| OKLCH | oklch(42.05% 0.162 269.4) |
| XYZ | xyz(9.5706, 6.8816, 35.9387) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.68
Cobalt
#0047AB
ΔE00 4.28
Blueberry
#464196
ΔE00 4.56
Blue Blue
#2242C7
ΔE00 4.69
Ocean Blue
#4F42B5
ΔE00 5.74
Cobalt (survey)
#1E488F
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C40A4 #A4902C
analogous
#2C7CA4 #2C40A4 #542CA4
triadic
#2C40A4 #A42C40 #40A42C
tetradic
#2C40A4 #A42C7C #A4902C #2CA454
square
#2C40A4 #A42C7C #A4902C #2CA454
split-complementary
#2C40A4 #A4542C #7CA42C
monochromatic
#121A43 #1F2D74 #2C40A4 #4158CC #7183D9
Accessibility & contrast
On white
8.84
#2C40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#2C40A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C40A4
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C40A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C40A4 | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2c40a4; /* rgb */ color: rgb(44, 64, 164); /* oklch */ color: oklch(42.1% 0.162 269.4);
Tailwind
colors: {
custom: {
50: '#7674c0',
500: '#2c40a4',
950: '#000000',
},
}SCSS
$custom: #2c40a4; $custom-light: #7674c0; $custom-dark: #000000;
JSON
{
"hex": "#2c40a4",
"rgb": {
"r": 44,
"g": 64,
"b": 164
},
"hsl": {
"h": 230,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.42053,
"c": 0.16241,
"h": 269.4
},
"luminance": 0.06883
}Semantic roles & 50–950 ramp
primary
#2C40A4
secondary
#C0B26B
accent
#C747E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81