#2B40A6#2B40A6
#2B40A6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.165 H 269.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40A6 |
|---|---|
| RGB | rgb(43, 64, 166) |
| HSL | hsl(230, 59%, 41%) |
| HSV | hsv(230, 74%, 65%) |
| CMYK | cmyk(74.1%, 61.4%, 0%, 34.9%) |
| CIE-LAB | lab(31.65, 28.34, -57.27) |
| CIE-LCH | lch(31.65, 63.90, 296.33°) |
| OKLab | oklab(42.18% -0.0027 -0.1654) |
| OKLCH | oklch(42.18% 0.165 269.1) |
| XYZ | xyz(9.7102, 6.9325, 36.8954) |
| Luminance | 0.0693 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.55
Cobalt
#0047AB
ΔE00 4.21
Blue Blue
#2242C7
ΔE00 4.41
Blueberry
#464196
ΔE00 4.75
Ocean Blue
#4F42B5
ΔE00 5.66
Cobalt (survey)
#1E488F
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40A6 #A6912B
analogous
#2B7DA6 #2B40A6 #532BA6
triadic
#2B40A6 #A62B40 #40A62B
tetradic
#2B40A6 #A62B7D #A6912B #2BA653
square
#2B40A6 #A62B7D #A6912B #2BA653
split-complementary
#2B40A6 #A6532B #7DA62B
monochromatic
#121B45 #1E2D75 #2B40A6 #4159CE #7183DA
Accessibility & contrast
On white
8.80
#2B40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2B40A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40A6
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40A6 | 1.00 | 8.80 | 2.39 | 8.80 |
| #FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2b40a6; /* rgb */ color: rgb(43, 64, 166); /* oklch */ color: oklch(42.2% 0.165 269.1);
Tailwind
colors: {
custom: {
50: '#7674c1',
500: '#2b40a6',
950: '#000000',
},
}SCSS
$custom: #2b40a6; $custom-light: #7674c1; $custom-dark: #000000;
JSON
{
"hex": "#2b40a6",
"rgb": {
"r": 43,
"g": 64,
"b": 166
},
"hsl": {
"h": 229.756,
"s": 58.852,
"l": 40.98
},
"oklch": {
"l": 0.42178,
"c": 0.16541,
"h": 269.1
},
"luminance": 0.06934
}Semantic roles & 50–950 ramp
primary
#2B40A6
secondary
#C1B36B
accent
#C746E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81