#2A40A2#2A40A2
#2A40A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 268.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40A2 |
|---|---|
| RGB | rgb(42, 64, 162) |
| HSL | hsl(229, 59%, 40%) |
| HSV | hsv(229, 74%, 64%) |
| CMYK | cmyk(74.1%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(31.27, 26.71, -55.49) |
| CIE-LCH | lch(31.27, 61.59, 295.71°) |
| OKLab | oklab(41.78% -0.0037 -0.1602) |
| OKLCH | oklch(41.78% 0.16 268.7) |
| XYZ | xyz(9.3076, 6.7667, 34.9910) |
| Luminance | 0.0677 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.87
Cobalt
#0047AB
ΔE00 4.08
Blueberry
#464196
ΔE00 4.69
Blue Blue
#2242C7
ΔE00 5.00
Cobalt (survey)
#1E488F
ΔE00 5.39
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40A2 #A28C2A
analogous
#2A7CA2 #2A40A2 #502AA2
triadic
#2A40A2 #A22A40 #40A22A
tetradic
#2A40A2 #A22A7C #A28C2A #2AA250
square
#2A40A2 #A22A7C #A28C2A #2AA250
split-complementary
#2A40A2 #A2502A #7CA22A
monochromatic
#111A41 #1D2D71 #2A40A2 #3D57CD #6D81D9
Accessibility & contrast
On white
8.92
#2A40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2A40A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40A2
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40A2 | 1.00 | 8.92 | 2.35 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2a40a2; /* rgb */ color: rgb(42, 64, 162); /* oklch */ color: oklch(41.8% 0.160 268.7);
Tailwind
colors: {
custom: {
50: '#7574be',
500: '#2a40a2',
950: '#000000',
},
}SCSS
$custom: #2a40a2; $custom-light: #7574be; $custom-dark: #000000;
JSON
{
"hex": "#2a40a2",
"rgb": {
"r": 42,
"g": 64,
"b": 162
},
"hsl": {
"h": 229,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.41776,
"c": 0.16023,
"h": 268.7
},
"luminance": 0.06768
}Semantic roles & 50–950 ramp
primary
#2A40A2
secondary
#C0B068
accent
#C546E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81