#2A40AA#2A40AA
#2A40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.171 H 268.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40AA |
|---|---|
| RGB | rgb(42, 64, 170) |
| HSL | hsl(230, 60%, 42%) |
| HSV | hsv(230, 75%, 67%) |
| CMYK | cmyk(75.3%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(31.94, 29.71, -59.20) |
| CIE-LCH | lch(31.94, 66.24, 296.65°) |
| OKLab | oklab(42.49% -0.0037 -0.1711) |
| OKLCH | oklch(42.49% 0.171 268.8) |
| XYZ | xyz(10.0414, 7.0602, 38.8560) |
| Luminance | 0.0706 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blue Blue
#2242C7
ΔE00 3.86
Cobalt
#0047AB
ΔE00 4.22
Blueberry
#464196
ΔE00 5.06
Ocean Blue
#4F42B5
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40AA #AA942A
analogous
#2A80AA #2A40AA #542AAA
triadic
#2A40AA #AA2A40 #40AA2A
tetradic
#2A40AA #AA2A80 #AA942A #2AAA54
square
#2A40AA #AA2A80 #AA942A #2AAA54
split-complementary
#2A40AA #AA542A #80AA2A
monochromatic
#121B48 #1E2E79 #2A40AA #415AD0 #7284DC
Accessibility & contrast
On white
8.71
#2A40AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2A40AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40AA
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40AA | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2a40aa; /* rgb */ color: rgb(42, 64, 170); /* oklch */ color: oklch(42.5% 0.171 268.8);
Tailwind
colors: {
custom: {
50: '#7774c4',
500: '#2a40aa',
950: '#000000',
},
}SCSS
$custom: #2a40aa; $custom-light: #7774c4; $custom-dark: #000000;
JSON
{
"hex": "#2a40aa",
"rgb": {
"r": 42,
"g": 64,
"b": 170
},
"hsl": {
"h": 229.688,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.42485,
"c": 0.17111,
"h": 268.8
},
"luminance": 0.07061
}Semantic roles & 50–950 ramp
primary
#2A40AA
secondary
#C3B46C
accent
#C844E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82