#2B40A1#2B40A1
#2B40A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 269.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40A1 |
|---|---|
| RGB | rgb(43, 64, 161) |
| HSL | hsl(229, 58%, 40%) |
| HSV | hsv(229, 73%, 63%) |
| CMYK | cmyk(73.3%, 60.2%, 0%, 36.9%) |
| CIE-LAB | lab(31.24, 26.47, -54.94) |
| CIE-LCH | lch(31.24, 60.98, 295.72°) |
| OKLab | oklab(41.74% -0.0027 -0.1585) |
| OKLCH | oklch(41.74% 0.159 269) |
| XYZ | xyz(9.2605, 6.7526, 34.5266) |
| Luminance | 0.0675 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.95
Cobalt
#0047AB
ΔE00 4.18
Blueberry
#464196
ΔE00 4.55
Blue Blue
#2242C7
ΔE00 5.13
Cobalt (survey)
#1E488F
ΔE00 5.37
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40A1 #A18C2B
analogous
#2B7BA1 #2B40A1 #512BA1
triadic
#2B40A1 #A12B40 #40A12B
tetradic
#2B40A1 #A12B7B #A18C2B #2BA151
square
#2B40A1 #A12B7B #A18C2B #2BA151
split-complementary
#2B40A1 #A1512B #7BA12B
monochromatic
#111A40 #1E2D71 #2B40A1 #3E57CB #6E81D8
Accessibility & contrast
On white
8.93
#2B40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2B40A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40A1
8.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40A1 | 1.00 | 8.93 | 2.35 | 8.93 |
| #FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2b40a1; /* rgb */ color: rgb(43, 64, 161); /* oklch */ color: oklch(41.7% 0.159 269.0);
Tailwind
colors: {
custom: {
50: '#7574be',
500: '#2b40a1',
950: '#000000',
},
}SCSS
$custom: #2b40a1; $custom-light: #7574be; $custom-dark: #000000;
JSON
{
"hex": "#2b40a1",
"rgb": {
"r": 43,
"g": 64,
"b": 161
},
"hsl": {
"h": 229.322,
"s": 57.843,
"l": 40
},
"oklch": {
"l": 0.41739,
"c": 0.15857,
"h": 269
},
"luminance": 0.06754
}Semantic roles & 50–950 ramp
primary
#2B40A1
secondary
#BFB069
accent
#C647E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81