#2A338E#2A338E
#2A338E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.149 H 272.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A338E |
|---|---|
| RGB | rgb(42, 51, 142) |
| HSL | hsl(235, 54%, 36%) |
| HSV | hsv(235, 70%, 56%) |
| CMYK | cmyk(70.4%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(26.19, 27.91, -51.56) |
| CIE-LCH | lch(26.19, 58.63, 298.43°) |
| OKLab | oklab(37.49% 0.0066 -0.1488) |
| OKLCH | oklch(37.49% 0.149 272.6) |
| XYZ | xyz(7.0195, 4.8122, 26.1449) |
| Luminance | 0.0481 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.33
Blueberry
#464196
ΔE00 5.26
Darkslateblue
#483D8B
ΔE00 5.41
Royal
#0C1793
ΔE00 7.33
Midnight Blue
#191970
ΔE00 7.84
Cobalt
#0047AB
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A338E #8E852A
analogous
#2A658E #2A338E #532A8E
triadic
#2A338E #8E2A33 #338E2A
tetradic
#2A338E #8E2A65 #8E852A #2A8E53
square
#2A338E #8E2A65 #8E852A #2A8E53
split-complementary
#2A338E #8E532A #658E2A
monochromatic
#0E1130 #1C225F #2A338E #3844BD #626CD1
Accessibility & contrast
On white
10.70
#2A338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2A338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A338E
10.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A338E | 1.00 | 10.70 | 1.96 | 10.70 |
| #FFFFFF | 10.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a338e; /* rgb */ color: rgb(42, 51, 142); /* oklch */ color: oklch(37.5% 0.149 272.6);
Tailwind
colors: {
custom: {
50: '#716ab0',
500: '#2a338e',
950: '#000000',
},
}SCSS
$custom: #2a338e; $custom-light: #716ab0; $custom-dark: #000000;
JSON
{
"hex": "#2a338e",
"rgb": {
"r": 42,
"g": 51,
"b": 142
},
"hsl": {
"h": 234.6,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.3749,
"c": 0.14895,
"h": 272.6
},
"luminance": 0.04813
}Semantic roles & 50–950 ramp
primary
#2A338E
secondary
#B6AE5D
accent
#D04ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80