#2A339D#2A339D
#2A339D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.169 H 271.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A339D |
|---|---|
| RGB | rgb(42, 51, 157) |
| HSL | hsl(235, 58%, 39%) |
| HSV | hsv(235, 73%, 62%) |
| CMYK | cmyk(73.2%, 67.5%, 0%, 38.4%) |
| CIE-LAB | lab(27.55, 33.40, -58.54) |
| CIE-LCH | lch(27.55, 67.40, 299.71°) |
| OKLab | oklab(38.91% 0.0056 -0.1692) |
| OKLCH | oklch(38.91% 0.169 271.9) |
| XYZ | xyz(8.2224, 5.2934, 32.4801) |
| Luminance | 0.0529 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.47
Blueberry
#464196
ΔE00 5.39
Darkslateblue
#483D8B
ΔE00 6.16
Ocean Blue
#4F42B5
ΔE00 6.82
Blue Blue
#2242C7
ΔE00 6.88
Royal
#0C1793
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A339D #9D942A
analogous
#2A6D9D #2A339D #5B2A9D
triadic
#2A339D #9D2A33 #339D2A
tetradic
#2A339D #9D2A6D #9D942A #2A9D5B
square
#2A339D #9D2A6D #9D942A #2A9D5B
split-complementary
#2A339D #9D5B2A #6D9D2A
monochromatic
#10143C #1D236D #2A339D #3A45CA #6A73D7
Accessibility & contrast
On white
10.20
#2A339D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2A339D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A339D
10.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A339D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A339D | 1.00 | 10.20 | 2.06 | 10.20 |
| #FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a339d; /* rgb */ color: rgb(42, 51, 157); /* oklch */ color: oklch(38.9% 0.169 271.9);
Tailwind
colors: {
custom: {
50: '#756bbb',
500: '#2a339d',
950: '#000000',
},
}SCSS
$custom: #2a339d; $custom-light: #756bbb; $custom-dark: #000000;
JSON
{
"hex": "#2a339d",
"rgb": {
"r": 42,
"g": 51,
"b": 157
},
"hsl": {
"h": 235.304,
"s": 57.789,
"l": 39.02
},
"oklch": {
"l": 0.38906,
"c": 0.16932,
"h": 271.9
},
"luminance": 0.05294
}Semantic roles & 50–950 ramp
primary
#2A339D
secondary
#BEB765
accent
#D547E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81