#2A40B1#2A40B1
#2A40B1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.180 H 268.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40B1 |
|---|---|
| RGB | rgb(42, 64, 177) |
| HSL | hsl(230, 62%, 43%) |
| HSV | hsv(230, 76%, 69%) |
| CMYK | cmyk(76.3%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(32.55, 32.31, -62.38) |
| CIE-LCH | lch(32.55, 70.25, 297.38°) |
| OKLab | oklab(43.12% -0.0039 -0.1804) |
| OKLCH | oklch(43.12% 0.18 268.8) |
| XYZ | xyz(10.7213, 7.3322, 42.4367) |
| Luminance | 0.0733 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.42
Blue Blue
#2242C7
ΔE00 2.90
Cobalt
#0047AB
ΔE00 4.56
Ocean Blue
#4F42B5
ΔE00 4.95
Blueberry
#464196
ΔE00 5.56
Blue (survey)
#0343DF
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40B1 #B19B2A
analogous
#2A84B1 #2A40B1 #572AB1
triadic
#2A40B1 #B12A40 #40B12A
tetradic
#2A40B1 #B12A84 #B19B2A #2AB157
square
#2A40B1 #B12A84 #B19B2A #2AB157
split-complementary
#2A40B1 #B1572A #84B12A
monochromatic
#131C4E #1E2E80 #2A40B1 #455CD3 #7788DF
Accessibility & contrast
On white
8.51
#2A40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2A40B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40B1
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40B1 | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a40b1; /* rgb */ color: rgb(42, 64, 177); /* oklch */ color: oklch(43.1% 0.180 268.8);
Tailwind
colors: {
custom: {
50: '#7974c9',
500: '#2a40b1',
950: '#000000',
},
}SCSS
$custom: #2a40b1; $custom-light: #7974c9; $custom-dark: #000000;
JSON
{
"hex": "#2a40b1",
"rgb": {
"r": 42,
"g": 64,
"b": 177
},
"hsl": {
"h": 230.222,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.43122,
"c": 0.18043,
"h": 268.8
},
"luminance": 0.07333
}Semantic roles & 50–950 ramp
primary
#2A40B1
secondary
#C6B870
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82