#2A339A#2A339A
#2A339A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.165 H 272.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2A339A |
|---|---|
| RGB | rgb(42, 51, 154) |
| HSL | hsl(235, 57%, 38%) |
| HSV | hsv(235, 73%, 60%) |
| CMYK | cmyk(72.7%, 66.9%, 0%, 39.6%) |
| CIE-LAB | lab(27.28, 32.31, -57.17) |
| CIE-LCH | lch(27.28, 65.67, 299.47°) |
| OKLab | oklab(38.62% 0.0059 -0.1652) |
| OKLCH | oklch(38.62% 0.165 272) |
| XYZ | xyz(7.9694, 5.1922, 31.1478) |
| Luminance | 0.0519 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.78
Blueberry
#464196
ΔE00 5.30
Darkslateblue
#483D8B
ΔE00 5.96
Royal
#0C1793
ΔE00 6.98
Ocean Blue
#4F42B5
ΔE00 7.07
Blue Blue
#2242C7
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A339A #9A912A
analogous
#2A6B9A #2A339A #592A9A
triadic
#2A339A #9A2A33 #339A2A
tetradic
#2A339A #9A2A6B #9A912A #2A9A59
square
#2A339A #9A2A6B #9A912A #2A9A59
split-complementary
#2A339A #9A592A #6B9A2A
monochromatic
#10133A #1D236A #2A339A #3844C9 #6871D6
Accessibility & contrast
On white
10.30
#2A339A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2A339A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A339A
10.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A339A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A339A | 1.00 | 10.30 | 2.04 | 10.30 |
| #FFFFFF | 10.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2a339a; /* rgb */ color: rgb(42, 51, 154); /* oklch */ color: oklch(38.6% 0.165 272.0);
Tailwind
colors: {
custom: {
50: '#746bb9',
500: '#2a339a',
950: '#000000',
},
}SCSS
$custom: #2a339a; $custom-light: #746bb9; $custom-dark: #000000;
JSON
{
"hex": "#2a339a",
"rgb": {
"r": 42,
"g": 51,
"b": 154
},
"hsl": {
"h": 235.179,
"s": 57.143,
"l": 38.431
},
"oklch": {
"l": 0.38617,
"c": 0.16532,
"h": 272
},
"luminance": 0.05193
}Semantic roles & 50–950 ramp
primary
#2A339A
secondary
#BCB563
accent
#D447E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81