#2A40B3#2A40B3
#2A40B3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.183 H 268.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40B3 |
|---|---|
| RGB | rgb(42, 64, 179) |
| HSL | hsl(230, 62%, 43%) |
| HSV | hsv(230, 77%, 70%) |
| CMYK | cmyk(76.5%, 64.2%, 0%, 29.8%) |
| CIE-LAB | lab(32.73, 33.05, -63.28) |
| CIE-LCH | lch(32.73, 71.39, 297.58°) |
| OKLab | oklab(43.31% -0.004 -0.183) |
| OKLCH | oklch(43.31% 0.183 268.8) |
| XYZ | xyz(10.9221, 7.4125, 43.4942) |
| Luminance | 0.0741 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.51
Blue Blue
#2242C7
ΔE00 2.64
Cobalt
#0047AB
ΔE00 4.68
Ocean Blue
#4F42B5
ΔE00 4.85
Blue (survey)
#0343DF
ΔE00 5.49
Blueberry
#464196
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40B3 #B39D2A
analogous
#2A84B3 #2A40B3 #582AB3
triadic
#2A40B3 #B32A40 #40B32A
tetradic
#2A40B3 #B32A84 #B39D2A #2AB358
square
#2A40B3 #B32A84 #B39D2A #2AB358
split-complementary
#2A40B3 #B3582A #84B32A
monochromatic
#131D50 #1E2E81 #2A40B3 #465DD4 #7889DF
Accessibility & contrast
On white
8.46
#2A40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2A40B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40B3
8.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40B3 | 1.00 | 8.46 | 2.48 | 8.46 |
| #FFFFFF | 8.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a40b3; /* rgb */ color: rgb(42, 64, 179); /* oklch */ color: oklch(43.3% 0.183 268.8);
Tailwind
colors: {
custom: {
50: '#7974cb',
500: '#2a40b3',
950: '#000000',
},
}SCSS
$custom: #2a40b3; $custom-light: #7974cb; $custom-dark: #000000;
JSON
{
"hex": "#2a40b3",
"rgb": {
"r": 42,
"g": 64,
"b": 179
},
"hsl": {
"h": 230.365,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.43306,
"c": 0.18306,
"h": 268.8
},
"luminance": 0.07414
}Semantic roles & 50–950 ramp
primary
#2A40B3
secondary
#C7B972
accent
#CB43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82