#2B40AB#2B40AB
#2B40AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.172 H 269.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40AB |
|---|---|
| RGB | rgb(43, 64, 171) |
| HSL | hsl(230, 60%, 42%) |
| HSV | hsv(230, 75%, 67%) |
| CMYK | cmyk(74.9%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(32.08, 30.20, -59.58) |
| CIE-LCH | lch(32.08, 66.79, 296.88°) |
| OKLab | oklab(42.62% -0.0028 -0.1721) |
| OKLCH | oklch(42.62% 0.172 269.1) |
| XYZ | xyz(10.1778, 7.1196, 39.3580) |
| Luminance | 0.0712 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.36
Blue Blue
#2242C7
ΔE00 3.71
Cobalt
#0047AB
ΔE00 4.34
Blueberry
#464196
ΔE00 5.05
Ocean Blue
#4F42B5
ΔE00 5.25
Cobalt (survey)
#1E488F
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40AB #AB962B
analogous
#2B80AB #2B40AB #562BAB
triadic
#2B40AB #AB2B40 #40AB2B
tetradic
#2B40AB #AB2B80 #AB962B #2BAB56
square
#2B40AB #AB2B80 #AB962B #2BAB56
split-complementary
#2B40AB #AB562B #80AB2B
monochromatic
#121B49 #1F2E7A #2B40AB #435AD0 #7485DC
Accessibility & contrast
On white
8.66
#2B40AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2B40AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40AB
8.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40AB | 1.00 | 8.66 | 2.42 | 8.66 |
| #FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b40ab; /* rgb */ color: rgb(43, 64, 171); /* oklch */ color: oklch(42.6% 0.172 269.1);
Tailwind
colors: {
custom: {
50: '#7874c5',
500: '#2b40ab',
950: '#000000',
},
}SCSS
$custom: #2b40ab; $custom-light: #7874c5; $custom-dark: #000000;
JSON
{
"hex": "#2b40ab",
"rgb": {
"r": 43,
"g": 64,
"b": 171
},
"hsl": {
"h": 230.156,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.42624,
"c": 0.17217,
"h": 269.1
},
"luminance": 0.07121
}Semantic roles & 50–950 ramp
primary
#2B40AB
secondary
#C4B66E
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82