#2A40A4#2A40A4
#2A40A4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.163 H 268.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40A4 |
|---|---|
| RGB | rgb(42, 64, 164) |
| HSL | hsl(229, 59%, 40%) |
| HSV | hsv(229, 74%, 64%) |
| CMYK | cmyk(74.4%, 61%, 0%, 35.7%) |
| CIE-LAB | lab(31.44, 27.47, -56.43) |
| CIE-LCH | lch(31.44, 62.76, 295.96°) |
| OKLab | oklab(41.95% -0.0036 -0.1629) |
| OKLCH | oklch(41.95% 0.163 268.7) |
| XYZ | xyz(9.4868, 6.8384, 35.9347) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.70
Cobalt
#0047AB
ΔE00 4.08
Blue Blue
#2242C7
ΔE00 4.71
Blueberry
#464196
ΔE00 4.76
Cobalt (survey)
#1E488F
ΔE00 5.59
Ocean Blue
#4F42B5
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40A4 #A48E2A
analogous
#2A7DA4 #2A40A4 #512AA4
triadic
#2A40A4 #A42A40 #40A42A
tetradic
#2A40A4 #A42A7D #A48E2A #2AA451
square
#2A40A4 #A42A7D #A48E2A #2AA451
split-complementary
#2A40A4 #A4512A #7DA42A
monochromatic
#111A43 #1E2D73 #2A40A4 #3E58CD #6E82DA
Accessibility & contrast
On white
8.87
#2A40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2A40A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40A4
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40A4 | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2a40a4; /* rgb */ color: rgb(42, 64, 164); /* oklch */ color: oklch(42.0% 0.163 268.7);
Tailwind
colors: {
custom: {
50: '#7674c0',
500: '#2a40a4',
950: '#000000',
},
}SCSS
$custom: #2a40a4; $custom-light: #7674c0; $custom-dark: #000000;
JSON
{
"hex": "#2a40a4",
"rgb": {
"r": 42,
"g": 64,
"b": 164
},
"hsl": {
"h": 229.18,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.41951,
"c": 0.16297,
"h": 268.7
},
"luminance": 0.06839
}Semantic roles & 50–950 ramp
primary
#2A40A4
secondary
#C1B169
accent
#C645E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81