#2B40AA#2B40AA
#2B40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.171 H 269.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40AA |
|---|---|
| RGB | rgb(43, 64, 170) |
| HSL | hsl(230, 60%, 42%) |
| HSV | hsv(230, 75%, 67%) |
| CMYK | cmyk(74.7%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(31.99, 29.83, -59.12) |
| CIE-LCH | lch(31.99, 66.22, 296.78°) |
| OKLab | oklab(42.53% -0.0027 -0.1708) |
| OKLCH | oklch(42.53% 0.171 269.1) |
| XYZ | xyz(10.0829, 7.0816, 38.8579) |
| Luminance | 0.0708 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blue Blue
#2242C7
ΔE00 3.85
Cobalt
#0047AB
ΔE00 4.31
Blueberry
#464196
ΔE00 4.98
Ocean Blue
#4F42B5
ΔE00 5.32
Cobalt (survey)
#1E488F
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40AA #AA952B
analogous
#2B80AA #2B40AA #562BAA
triadic
#2B40AA #AA2B40 #40AA2B
tetradic
#2B40AA #AA2B80 #AA952B #2BAA56
square
#2B40AA #AA2B80 #AA952B #2BAA56
split-complementary
#2B40AA #AA562B #80AA2B
monochromatic
#121B48 #1F2E79 #2B40AA #435ACF #7485DC
Accessibility & contrast
On white
8.69
#2B40AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2B40AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40AA
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40AA | 1.00 | 8.69 | 2.42 | 8.69 |
| #FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b40aa; /* rgb */ color: rgb(43, 64, 170); /* oklch */ color: oklch(42.5% 0.171 269.1);
Tailwind
colors: {
custom: {
50: '#7774c4',
500: '#2b40aa',
950: '#000000',
},
}SCSS
$custom: #2b40aa; $custom-light: #7774c4; $custom-dark: #000000;
JSON
{
"hex": "#2b40aa",
"rgb": {
"r": 43,
"g": 64,
"b": 170
},
"hsl": {
"h": 230.079,
"s": 59.624,
"l": 41.765
},
"oklch": {
"l": 0.42534,
"c": 0.17083,
"h": 269.1
},
"luminance": 0.07083
}Semantic roles & 50–950 ramp
primary
#2B40AA
secondary
#C3B56E
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82