#2B40B6#2B40B6
#2B40B6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.187 H 269.0°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40B6 |
|---|---|
| RGB | rgb(43, 64, 182) |
| HSL | hsl(231, 62%, 44%) |
| HSV | hsv(231, 76%, 71%) |
| CMYK | cmyk(76.4%, 64.8%, 0%, 28.6%) |
| CIE-LAB | lab(33.04, 34.25, -64.54) |
| CIE-LCH | lch(33.04, 73.07, 297.96°) |
| OKLab | oklab(43.63% -0.0032 -0.1867) |
| OKLCH | oklch(43.63% 0.187 269) |
| XYZ | xyz(11.2702, 7.5565, 45.1115) |
| Luminance | 0.0756 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.25
Sapphire (survey)
#2138AB
ΔE00 2.72
Ocean Blue
#4F42B5
ΔE00 4.63
Cobalt
#0047AB
ΔE00 4.97
Blue (survey)
#0343DF
ΔE00 5.10
Blueberry
#464196
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40B6 #B6A12B
analogous
#2B86B6 #2B40B6 #5C2BB6
triadic
#2B40B6 #B62B40 #40B62B
tetradic
#2B40B6 #B62B86 #B6A12B #2BB65C
square
#2B40B6 #B62B86 #B6A12B #2BB65C
split-complementary
#2B40B6 #B65C2B #86B62B
monochromatic
#141D53 #1F2F84 #2B40B6 #4A5FD4 #7B8BE0
Accessibility & contrast
On white
8.36
#2B40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2B40B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40B6
8.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40B6 | 1.00 | 8.36 | 2.51 | 8.36 |
| #FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2b40b6; /* rgb */ color: rgb(43, 64, 182); /* oklch */ color: oklch(43.6% 0.187 269.0);
Tailwind
colors: {
custom: {
50: '#7a74cd',
500: '#2b40b6',
950: '#000000',
},
}SCSS
$custom: #2b40b6; $custom-light: #7a74cd; $custom-dark: #000000;
JSON
{
"hex": "#2b40b6",
"rgb": {
"r": 43,
"g": 64,
"b": 182
},
"hsl": {
"h": 230.935,
"s": 61.778,
"l": 44.118
},
"oklch": {
"l": 0.43631,
"c": 0.18673,
"h": 269
},
"luminance": 0.07558
}Semantic roles & 50–950 ramp
primary
#2B40B6
secondary
#C8BC75
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82