#2B40AE#2B40AE
#2B40AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.176 H 269.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40AE |
|---|---|
| RGB | rgb(43, 64, 174) |
| HSL | hsl(230, 60%, 43%) |
| HSV | hsv(230, 75%, 68%) |
| CMYK | cmyk(75.3%, 63.2%, 0%, 31.8%) |
| CIE-LAB | lab(32.34, 31.31, -60.95) |
| CIE-LCH | lch(32.34, 68.52, 297.19°) |
| OKLab | oklab(42.9% -0.0028 -0.1762) |
| OKLCH | oklch(42.9% 0.176 269.1) |
| XYZ | xyz(10.4670, 7.2352, 40.8811) |
| Luminance | 0.0724 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.30
Cobalt
#0047AB
ΔE00 4.48
Ocean Blue
#4F42B5
ΔE00 5.04
Blueberry
#464196
ΔE00 5.26
Blue (survey)
#0343DF
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40AE #AE992B
analogous
#2B81AE #2B40AE #582BAE
triadic
#2B40AE #AE2B40 #40AE2B
tetradic
#2B40AE #AE2B81 #AE992B #2BAE58
square
#2B40AE #AE2B81 #AE992B #2BAE58
split-complementary
#2B40AE #AE582B #81AE2B
monochromatic
#131C4C #1F2E7D #2B40AE #455CD1 #7687DD
Accessibility & contrast
On white
8.58
#2B40AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2B40AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40AE
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40AE | 1.00 | 8.58 | 2.45 | 8.58 |
| #FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2b40ae; /* rgb */ color: rgb(43, 64, 174); /* oklch */ color: oklch(42.9% 0.176 269.1);
Tailwind
colors: {
custom: {
50: '#7874c7',
500: '#2b40ae',
950: '#000000',
},
}SCSS
$custom: #2b40ae; $custom-light: #7874c7; $custom-dark: #000000;
JSON
{
"hex": "#2b40ae",
"rgb": {
"r": 43,
"g": 64,
"b": 174
},
"hsl": {
"h": 230.382,
"s": 60.369,
"l": 42.549
},
"oklch": {
"l": 0.42895,
"c": 0.17618,
"h": 269.1
},
"luminance": 0.07236
}Semantic roles & 50–950 ramp
primary
#2B40AE
secondary
#C5B770
accent
#CA44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82