#2B40B0#2B40B0
#2B40B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.179 H 269.1°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2B40B0 |
|---|---|
| RGB | rgb(43, 64, 176) |
| HSL | hsl(231, 61%, 43%) |
| HSV | hsv(231, 76%, 69%) |
| CMYK | cmyk(75.6%, 63.6%, 0%, 31%) |
| CIE-LAB | lab(32.51, 32.05, -61.85) |
| CIE-LCH | lch(32.51, 69.66, 297.39°) |
| OKLab | oklab(43.08% -0.0029 -0.1788) |
| OKLCH | oklch(43.08% 0.179 269.1) |
| XYZ | xyz(10.6634, 7.3138, 41.9156) |
| Luminance | 0.0732 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.40
Blue Blue
#2242C7
ΔE00 3.03
Cobalt
#0047AB
ΔE00 4.58
Ocean Blue
#4F42B5
ΔE00 4.91
Blueberry
#464196
ΔE00 5.42
Blue (survey)
#0343DF
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B40B0 #B09B2B
analogous
#2B83B0 #2B40B0 #582BB0
triadic
#2B40B0 #B02B40 #40B02B
tetradic
#2B40B0 #B02B83 #B09B2B #2BB058
square
#2B40B0 #B02B83 #B09B2B #2BB058
split-complementary
#2B40B0 #B0582B #83B02B
monochromatic
#131C4E #1F2E7F #2B40B0 #465CD2 #7888DE
Accessibility & contrast
On white
8.53
#2B40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2B40B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B40B0
8.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B40B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B40B0 | 1.00 | 8.53 | 2.46 | 8.53 |
| #FFFFFF | 8.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2b40b0; /* rgb */ color: rgb(43, 64, 176); /* oklch */ color: oklch(43.1% 0.179 269.1);
Tailwind
colors: {
custom: {
50: '#7974c9',
500: '#2b40b0',
950: '#000000',
},
}SCSS
$custom: #2b40b0; $custom-light: #7974c9; $custom-dark: #000000;
JSON
{
"hex": "#2b40b0",
"rgb": {
"r": 43,
"g": 64,
"b": 176
},
"hsl": {
"h": 230.526,
"s": 60.731,
"l": 42.941
},
"oklch": {
"l": 0.43078,
"c": 0.17884,
"h": 269.1
},
"luminance": 0.07315
}Semantic roles & 50–950 ramp
primary
#2B40B0
secondary
#C6B871
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82