#2A40A0#2A40A0
#2A40A0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.157 H 268.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40A0 |
|---|---|
| RGB | rgb(42, 64, 160) |
| HSL | hsl(229, 58%, 40%) |
| HSV | hsv(229, 74%, 63%) |
| CMYK | cmyk(73.8%, 60%, 0%, 37.3%) |
| CIE-LAB | lab(31.10, 25.96, -54.55) |
| CIE-LCH | lch(31.10, 60.42, 295.45°) |
| OKLab | oklab(41.6% -0.0037 -0.1574) |
| OKLCH | oklch(41.6% 0.157 268.7) |
| XYZ | xyz(9.1312, 6.6961, 34.0621) |
| Luminance | 0.0670 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.06
Cobalt
#0047AB
ΔE00 4.09
Blueberry
#464196
ΔE00 4.63
Cobalt (survey)
#1E488F
ΔE00 5.19
Blue Blue
#2242C7
ΔE00 5.29
Ocean Blue
#4F42B5
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40A0 #A08A2A
analogous
#2A7BA0 #2A40A0 #4F2AA0
triadic
#2A40A0 #A02A40 #40A02A
tetradic
#2A40A0 #A02A7B #A08A2A #2AA04F
square
#2A40A0 #A02A7B #A08A2A #2AA04F
split-complementary
#2A40A0 #A04F2A #7BA02A
monochromatic
#11193F #1D2D70 #2A40A0 #3C56CC #6C80D8
Accessibility & contrast
On white
8.98
#2A40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#2A40A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40A0
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40A0 | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a40a0; /* rgb */ color: rgb(42, 64, 160); /* oklch */ color: oklch(41.6% 0.157 268.7);
Tailwind
colors: {
custom: {
50: '#7574bd',
500: '#2a40a0',
950: '#000000',
},
}SCSS
$custom: #2a40a0; $custom-light: #7574bd; $custom-dark: #000000;
JSON
{
"hex": "#2a40a0",
"rgb": {
"r": 42,
"g": 64,
"b": 160
},
"hsl": {
"h": 228.814,
"s": 58.416,
"l": 39.608
},
"oklch": {
"l": 0.41602,
"c": 0.15747,
"h": 268.7
},
"luminance": 0.06697
}Semantic roles & 50–950 ramp
primary
#2A40A0
secondary
#BFAF67
accent
#C546E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81