#2B339E#2B339E
#2B339E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.170 H 272.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2B339E |
|---|---|
| RGB | rgb(43, 51, 158) |
| HSL | hsl(236, 57%, 39%) |
| HSV | hsv(236, 73%, 62%) |
| CMYK | cmyk(72.8%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(27.71, 33.88, -58.90) |
| CIE-LCH | lch(27.71, 67.94, 299.91°) |
| OKLab | oklab(39.06% 0.0066 -0.1703) |
| OKLCH | oklch(39.06% 0.17 272.2) |
| XYZ | xyz(8.3496, 5.3490, 32.9336) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.42
Blueberry
#464196
ΔE00 5.37
Darkslateblue
#483D8B
ΔE00 6.15
Ocean Blue
#4F42B5
ΔE00 6.66
Blue Blue
#2242C7
ΔE00 6.78
Indigo Blue
#3A18B1
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B339E #9E962B
analogous
#2B6D9E #2B339E #5D2B9E
triadic
#2B339E #9E2B33 #339E2B
tetradic
#2B339E #9E2B6D #9E962B #2B9E5D
square
#2B339E #9E2B6D #9E962B #2B9E5D
split-complementary
#2B339E #9E5D2B #6D9E2B
monochromatic
#11143E #1E236E #2B339E #3C46CA #6C74D7
Accessibility & contrast
On white
10.14
#2B339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#2B339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B339E
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B339E | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2b339e; /* rgb */ color: rgb(43, 51, 158); /* oklch */ color: oklch(39.1% 0.170 272.2);
Tailwind
colors: {
custom: {
50: '#766bbc',
500: '#2b339e',
950: '#000000',
},
}SCSS
$custom: #2b339e; $custom-light: #766bbc; $custom-dark: #000000;
JSON
{
"hex": "#2b339e",
"rgb": {
"r": 43,
"g": 51,
"b": 158
},
"hsl": {
"h": 235.826,
"s": 57.214,
"l": 39.412
},
"oklch": {
"l": 0.39061,
"c": 0.17038,
"h": 272.2
},
"luminance": 0.0535
}Semantic roles & 50–950 ramp
primary
#2B339E
secondary
#BEB867
accent
#D647E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81