#2B40AC#2B40AC
#2B40AC is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.174 H 269.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40AC |
|---|---|
| RGB | rgb(43, 64, 172) |
| HSL | hsl(230, 60%, 42%) |
| HSV | hsv(230, 75%, 67%) |
| CMYK | cmyk(75%, 62.8%, 0%, 32.5%) |
| CIE-LAB | lab(32.16, 30.57, -60.03) |
| CIE-LCH | lch(32.16, 67.37, 296.99°) |
| OKLab | oklab(42.71% -0.0028 -0.1735) |
| OKLCH | oklch(42.71% 0.174 269.1) |
| XYZ | xyz(10.2735, 7.1578, 39.8619) |
| Luminance | 0.0716 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.58
Cobalt
#0047AB
ΔE00 4.39
Blueberry
#464196
ΔE00 5.12
Ocean Blue
#4F42B5
ΔE00 5.17
Blue (survey)
#0343DF
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40AC #AC972B
analogous
#2B80AC #2B40AC #572BAC
triadic
#2B40AC #AC2B40 #40AC2B
tetradic
#2B40AC #AC2B80 #AC972B #2BAC57
square
#2B40AC #AC2B80 #AC972B #2BAC57
split-complementary
#2B40AC #AC572B #80AC2B
monochromatic
#131C4A #1F2E7B #2B40AC #445BD0 #7586DC
Accessibility & contrast
On white
8.64
#2B40AC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2B40AC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40AC
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40AC | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2b40ac; /* rgb */ color: rgb(43, 64, 172); /* oklch */ color: oklch(42.7% 0.174 269.1);
Tailwind
colors: {
custom: {
50: '#7874c6',
500: '#2b40ac',
950: '#000000',
},
}SCSS
$custom: #2b40ac; $custom-light: #7874c6; $custom-dark: #000000;
JSON
{
"hex": "#2b40ac",
"rgb": {
"r": 43,
"g": 64,
"b": 172
},
"hsl": {
"h": 230.233,
"s": 60,
"l": 42.157
},
"oklch": {
"l": 0.42714,
"c": 0.17351,
"h": 269.1
},
"luminance": 0.07159
}Semantic roles & 50–950 ramp
primary
#2B40AC
secondary
#C4B66F
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82