#2B40A2#2B40A2
#2B40A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 269.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40A2 |
|---|---|
| RGB | rgb(43, 64, 162) |
| HSL | hsl(229, 58%, 40%) |
| HSV | hsv(229, 73%, 64%) |
| CMYK | cmyk(73.5%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(31.32, 26.84, -55.41) |
| CIE-LCH | lch(31.32, 61.57, 295.85°) |
| OKLab | oklab(41.83% -0.0027 -0.1599) |
| OKLCH | oklch(41.83% 0.16 269) |
| XYZ | xyz(9.3490, 6.7880, 34.9929) |
| Luminance | 0.0679 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.85
Cobalt
#0047AB
ΔE00 4.18
Blueberry
#464196
ΔE00 4.58
Blue Blue
#2242C7
ΔE00 4.99
Cobalt (survey)
#1E488F
ΔE00 5.47
Ocean Blue
#4F42B5
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40A2 #A28D2B
analogous
#2B7BA2 #2B40A2 #522BA2
triadic
#2B40A2 #A22B40 #40A22B
tetradic
#2B40A2 #A22B7B #A28D2B #2BA252
square
#2B40A2 #A22B7B #A28D2B #2BA252
split-complementary
#2B40A2 #A2522B #7BA22B
monochromatic
#111A41 #1E2D72 #2B40A2 #3E57CC #6F81D9
Accessibility & contrast
On white
8.91
#2B40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2B40A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40A2
8.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40A2 | 1.00 | 8.91 | 2.36 | 8.91 |
| #FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2b40a2; /* rgb */ color: rgb(43, 64, 162); /* oklch */ color: oklch(41.8% 0.160 269.0);
Tailwind
colors: {
custom: {
50: '#7574be',
500: '#2b40a2',
950: '#000000',
},
}SCSS
$custom: #2b40a2; $custom-light: #7574be; $custom-dark: #000000;
JSON
{
"hex": "#2b40a2",
"rgb": {
"r": 43,
"g": 64,
"b": 162
},
"hsl": {
"h": 229.412,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.41826,
"c": 0.15994,
"h": 269
},
"luminance": 0.06789
}Semantic roles & 50–950 ramp
primary
#2B40A2
secondary
#C0B069
accent
#C647E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81