#2B40A5#2B40A5
#2B40A5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.164 H 269.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40A5 |
|---|---|
| RGB | rgb(43, 64, 165) |
| HSL | hsl(230, 59%, 41%) |
| HSV | hsv(230, 74%, 65%) |
| CMYK | cmyk(73.9%, 61.2%, 0%, 35.3%) |
| CIE-LAB | lab(31.57, 27.97, -56.81) |
| CIE-LCH | lch(31.57, 63.32, 296.21°) |
| OKLab | oklab(42.09% -0.0027 -0.164) |
| OKLCH | oklch(42.09% 0.164 269.1) |
| XYZ | xyz(9.6188, 6.8960, 36.4141) |
| Luminance | 0.0690 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.62
Cobalt
#0047AB
ΔE00 4.19
Blue Blue
#2242C7
ΔE00 4.56
Blueberry
#464196
ΔE00 4.70
Ocean Blue
#4F42B5
ΔE00 5.75
Cobalt (survey)
#1E488F
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40A5 #A5902B
analogous
#2B7DA5 #2B40A5 #532BA5
triadic
#2B40A5 #A52B40 #40A52B
tetradic
#2B40A5 #A52B7D #A5902B #2BA553
square
#2B40A5 #A52B7D #A5902B #2BA553
split-complementary
#2B40A5 #A5532B #7DA52B
monochromatic
#121A44 #1E2D74 #2B40A5 #4058CD #7183DA
Accessibility & contrast
On white
8.83
#2B40A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#2B40A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40A5
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40A5 | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2b40a5; /* rgb */ color: rgb(43, 64, 165); /* oklch */ color: oklch(42.1% 0.164 269.1);
Tailwind
colors: {
custom: {
50: '#7674c1',
500: '#2b40a5',
950: '#000000',
},
}SCSS
$custom: #2b40a5; $custom-light: #7674c1; $custom-dark: #000000;
JSON
{
"hex": "#2b40a5",
"rgb": {
"r": 43,
"g": 64,
"b": 165
},
"hsl": {
"h": 229.672,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.42089,
"c": 0.16405,
"h": 269.1
},
"luminance": 0.06897
}Semantic roles & 50–950 ramp
primary
#2B40A5
secondary
#C1B26B
accent
#C746E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81