#2B408E#2B408E
#2B408E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.132 H 268.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2B408E |
|---|---|
| RGB | rgb(43, 64, 142) |
| HSL | hsl(227, 54%, 36%) |
| HSV | hsv(227, 70%, 56%) |
| CMYK | cmyk(69.7%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.74, 19.27, -45.79) |
| CIE-LCH | lch(29.74, 49.68, 292.83°) |
| OKLab | oklab(40.15% -0.0035 -0.1316) |
| OKLCH | oklch(40.15% 0.132 268.5) |
| XYZ | xyz(7.7105, 6.1326, 26.3633) |
| Luminance | 0.0613 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.03
Blueberry
#464196
ΔE00 4.92
Cobalt
#0047AB
ΔE00 5.18
Darkish Blue
#014182
ΔE00 5.29
Sapphire (survey)
#2138AB
ΔE00 5.37
Darkslateblue
#483D8B
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B408E #8E792B
analogous
#2B728E #2B408E #482B8E
triadic
#2B408E #8E2B40 #408E2B
tetradic
#2B408E #8E2B72 #8E792B #2B8E48
square
#2B408E #8E2B72 #8E792B #2B8E48
split-complementary
#2B408E #8E482B #728E2B
monochromatic
#0F1630 #1D2B5F #2B408E #3955BD #637AD0
Accessibility & contrast
On white
9.43
#2B408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2B408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B408E
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B408E | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#074B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2b408e; /* rgb */ color: rgb(43, 64, 142); /* oklch */ color: oklch(40.2% 0.132 268.5);
Tailwind
colors: {
custom: {
50: '#7174b0',
500: '#2b408e',
950: '#000000',
},
}SCSS
$custom: #2b408e; $custom-light: #7174b0; $custom-dark: #000000;
JSON
{
"hex": "#2b408e",
"rgb": {
"r": 43,
"g": 64,
"b": 142
},
"hsl": {
"h": 227.273,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.40152,
"c": 0.13168,
"h": 268.5
},
"luminance": 0.06133
}Semantic roles & 50–950 ramp
primary
#2B408E
secondary
#B6A45F
accent
#BE4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F