#2A339B#2A339B
#2A339B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.167 H 272.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2A339B |
|---|---|
| RGB | rgb(42, 51, 155) |
| HSL | hsl(235, 57%, 39%) |
| HSV | hsv(235, 73%, 61%) |
| CMYK | cmyk(72.9%, 67.1%, 0%, 39.2%) |
| CIE-LAB | lab(27.37, 32.67, -57.63) |
| CIE-LCH | lch(27.37, 66.25, 299.55°) |
| OKLab | oklab(38.71% 0.0058 -0.1666) |
| OKLCH | oklch(38.71% 0.167 272) |
| XYZ | xyz(8.0531, 5.2256, 31.5882) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.68
Blueberry
#464196
ΔE00 5.33
Darkslateblue
#483D8B
ΔE00 6.02
Royal
#0C1793
ΔE00 6.98
Ocean Blue
#4F42B5
ΔE00 6.98
Blue Blue
#2242C7
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A339B #9B922A
analogous
#2A6B9B #2A339B #592A9B
triadic
#2A339B #9B2A33 #339B2A
tetradic
#2A339B #9B2A6B #9B922A #2A9B59
square
#2A339B #9B2A6B #9B922A #2A9B59
split-complementary
#2A339B #9B592A #6B9B2A
monochromatic
#10133B #1D236B #2A339B #3944C9 #6972D6
Accessibility & contrast
On white
10.27
#2A339B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2A339B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A339B
10.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A339B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A339B | 1.00 | 10.27 | 2.05 | 10.27 |
| #FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a339b; /* rgb */ color: rgb(42, 51, 155); /* oklch */ color: oklch(38.7% 0.167 272.0);
Tailwind
colors: {
custom: {
50: '#756bb9',
500: '#2a339b',
950: '#000000',
},
}SCSS
$custom: #2a339b; $custom-light: #756bb9; $custom-dark: #000000;
JSON
{
"hex": "#2a339b",
"rgb": {
"r": 42,
"g": 51,
"b": 155
},
"hsl": {
"h": 235.221,
"s": 57.36,
"l": 38.627
},
"oklch": {
"l": 0.38713,
"c": 0.16666,
"h": 272
},
"luminance": 0.05226
}Semantic roles & 50–950 ramp
primary
#2A339B
secondary
#BDB664
accent
#D447E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81