#2B40B5#2B40B5
#2B40B5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.185 H 269.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40B5 |
|---|---|
| RGB | rgb(43, 64, 181) |
| HSL | hsl(231, 62%, 44%) |
| HSV | hsv(231, 76%, 71%) |
| CMYK | cmyk(76.2%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(32.95, 33.89, -64.10) |
| CIE-LCH | lch(32.95, 72.50, 297.87°) |
| OKLab | oklab(43.54% -0.0031 -0.1854) |
| OKLCH | oklch(43.54% 0.185 269) |
| XYZ | xyz(11.1673, 7.5154, 44.5692) |
| Luminance | 0.0752 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.38
Sapphire (survey)
#2138AB
ΔE00 2.65
Ocean Blue
#4F42B5
ΔE00 4.66
Cobalt
#0047AB
ΔE00 4.90
Blue (survey)
#0343DF
ΔE00 5.23
Blueberry
#464196
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40B5 #B5A02B
analogous
#2B85B5 #2B40B5 #5B2BB5
triadic
#2B40B5 #B52B40 #40B52B
tetradic
#2B40B5 #B52B85 #B5A02B #2BB55B
square
#2B40B5 #B52B85 #B5A02B #2BB55B
split-complementary
#2B40B5 #B55B2B #85B52B
monochromatic
#141D52 #1F2F84 #2B40B5 #495ED4 #7B8AE0
Accessibility & contrast
On white
8.39
#2B40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2B40B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40B5
8.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40B5 | 1.00 | 8.39 | 2.50 | 8.39 |
| #FFFFFF | 8.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2b40b5; /* rgb */ color: rgb(43, 64, 181); /* oklch */ color: oklch(43.5% 0.185 269.0);
Tailwind
colors: {
custom: {
50: '#7a74cc',
500: '#2b40b5',
950: '#000000',
},
}SCSS
$custom: #2b40b5; $custom-light: #7a74cc; $custom-dark: #000000;
JSON
{
"hex": "#2b40b5",
"rgb": {
"r": 43,
"g": 64,
"b": 181
},
"hsl": {
"h": 230.87,
"s": 61.607,
"l": 43.922
},
"oklch": {
"l": 0.43538,
"c": 0.18542,
"h": 269
},
"luminance": 0.07517
}Semantic roles & 50–950 ramp
primary
#2B40B5
secondary
#C8BB74
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82