#2A40A8#2A40A8
#2A40A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.168 H 268.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40A8 |
|---|---|
| RGB | rgb(42, 64, 168) |
| HSL | hsl(230, 60%, 41%) |
| HSV | hsv(230, 75%, 66%) |
| CMYK | cmyk(75%, 61.9%, 0%, 34.1%) |
| CIE-LAB | lab(31.77, 28.97, -58.28) |
| CIE-LCH | lch(31.77, 65.08, 296.43°) |
| OKLab | oklab(42.31% -0.0037 -0.1684) |
| OKLCH | oklch(42.31% 0.168 268.8) |
| XYZ | xyz(9.8537, 6.9851, 37.8671) |
| Luminance | 0.0699 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.45
Blue Blue
#2242C7
ΔE00 4.14
Cobalt
#0047AB
ΔE00 4.15
Blueberry
#464196
ΔE00 4.95
Ocean Blue
#4F42B5
ΔE00 5.59
Cobalt (survey)
#1E488F
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40A8 #A8922A
analogous
#2A7FA8 #2A40A8 #532AA8
triadic
#2A40A8 #A82A40 #40A82A
tetradic
#2A40A8 #A82A7F #A8922A #2AA853
square
#2A40A8 #A82A7F #A8922A #2AA853
split-complementary
#2A40A8 #A8532A #7FA82A
monochromatic
#121B46 #1E2D77 #2A40A8 #4059CF #7184DB
Accessibility & contrast
On white
8.76
#2A40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2A40A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40A8
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40A8 | 1.00 | 8.76 | 2.40 | 8.76 |
| #FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2a40a8; /* rgb */ color: rgb(42, 64, 168); /* oklch */ color: oklch(42.3% 0.168 268.8);
Tailwind
colors: {
custom: {
50: '#7774c3',
500: '#2a40a8',
950: '#000000',
},
}SCSS
$custom: #2a40a8; $custom-light: #7774c3; $custom-dark: #000000;
JSON
{
"hex": "#2a40a8",
"rgb": {
"r": 42,
"g": 64,
"b": 168
},
"hsl": {
"h": 229.524,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.42306,
"c": 0.16841,
"h": 268.8
},
"luminance": 0.06986
}Semantic roles & 50–950 ramp
primary
#2A40A8
secondary
#C3B36B
accent
#C745E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82