#2B42A3#2B42A3
#2B42A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.159 H 268.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2B42A3 |
|---|---|
| RGB | rgb(43, 66, 163) |
| HSL | hsl(229, 58%, 40%) |
| HSV | hsv(229, 74%, 64%) |
| CMYK | cmyk(73.6%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(31.93, 25.89, -55.02) |
| CIE-LCH | lch(31.93, 60.81, 295.20°) |
| OKLab | oklab(42.31% -0.0042 -0.1587) |
| OKLCH | oklch(42.31% 0.159 268.5) |
| XYZ | xyz(9.5531, 7.0534, 35.5012) |
| Luminance | 0.0705 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.37
Cobalt
#0047AB
ΔE00 3.68
Blueberry
#464196
ΔE00 4.79
Blue Blue
#2242C7
ΔE00 4.88
Cobalt (survey)
#1E488F
ΔE00 5.05
Ocean Blue
#4F42B5
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B42A3 #A38C2B
analogous
#2B7EA3 #2B42A3 #502BA3
triadic
#2B42A3 #A32B42 #42A32B
tetradic
#2B42A3 #A32B7E #A38C2B #2BA350
square
#2B42A3 #A32B7E #A38C2B #2BA350
split-complementary
#2B42A3 #A3502B #7EA32B
monochromatic
#111B42 #1E2E73 #2B42A3 #3F5ACC #6F84D9
Accessibility & contrast
On white
8.71
#2B42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2B42A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B42A3
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B42A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B42A3 | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2b42a3; /* rgb */ color: rgb(43, 66, 163); /* oklch */ color: oklch(42.3% 0.159 268.5);
Tailwind
colors: {
custom: {
50: '#7676bf',
500: '#2b42a3',
950: '#000000',
},
}SCSS
$custom: #2b42a3; $custom-light: #7676bf; $custom-dark: #000000;
JSON
{
"hex": "#2b42a3",
"rgb": {
"r": 43,
"g": 66,
"b": 163
},
"hsl": {
"h": 228.5,
"s": 58.252,
"l": 40.392
},
"oklch": {
"l": 0.42305,
"c": 0.15881,
"h": 268.5
},
"luminance": 0.07054
}Semantic roles & 50–950 ramp
primary
#2B42A3
secondary
#C0B06A
accent
#C446E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81