#2A40B5#2A40B5
#2A40B5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.186 H 268.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40B5 |
|---|---|
| RGB | rgb(42, 64, 181) |
| HSL | hsl(231, 62%, 44%) |
| HSV | hsv(231, 77%, 71%) |
| CMYK | cmyk(76.8%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(32.91, 33.79, -64.18) |
| CIE-LCH | lch(32.91, 72.53, 297.77°) |
| OKLab | oklab(43.49% -0.004 -0.1856) |
| OKLCH | oklch(43.49% 0.186 268.8) |
| XYZ | xyz(11.1259, 7.4940, 44.5672) |
| Luminance | 0.0750 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.38
Sapphire (survey)
#2138AB
ΔE00 2.63
Ocean Blue
#4F42B5
ΔE00 4.76
Cobalt
#0047AB
ΔE00 4.82
Blue (survey)
#0343DF
ΔE00 5.23
Blueberry
#464196
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40B5 #B59F2A
analogous
#2A85B5 #2A40B5 #592AB5
triadic
#2A40B5 #B52A40 #40B52A
tetradic
#2A40B5 #B52A85 #B59F2A #2AB559
square
#2A40B5 #B52A85 #B59F2A #2AB559
split-complementary
#2A40B5 #B5592A #85B52A
monochromatic
#131D52 #1E2E83 #2A40B5 #485ED4 #798AE0
Accessibility & contrast
On white
8.40
#2A40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2A40B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40B5
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40B5 | 1.00 | 8.40 | 2.50 | 8.40 |
| #FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a40b5; /* rgb */ color: rgb(42, 64, 181); /* oklch */ color: oklch(43.5% 0.186 268.8);
Tailwind
colors: {
custom: {
50: '#7a74cc',
500: '#2a40b5',
950: '#000000',
},
}SCSS
$custom: #2a40b5; $custom-light: #7a74cc; $custom-dark: #000000;
JSON
{
"hex": "#2a40b5",
"rgb": {
"r": 42,
"g": 64,
"b": 181
},
"hsl": {
"h": 230.504,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.43491,
"c": 0.18568,
"h": 268.8
},
"luminance": 0.07495
}Semantic roles & 50–950 ramp
primary
#2A40B5
secondary
#C8BB73
accent
#CC42E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82