#2A338F#2A338F
#2A338F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.150 H 272.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2A338F |
|---|---|
| RGB | rgb(42, 51, 143) |
| HSL | hsl(235, 55%, 36%) |
| HSV | hsv(235, 71%, 56%) |
| CMYK | cmyk(70.6%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(26.28, 28.28, -52.04) |
| CIE-LCH | lch(26.28, 59.23, 298.52°) |
| OKLab | oklab(37.58% 0.0066 -0.1502) |
| OKLCH | oklch(37.58% 0.15 272.5) |
| XYZ | xyz(7.0949, 4.8424, 26.5420) |
| Luminance | 0.0484 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.19
Blueberry
#464196
ΔE00 5.24
Darkslateblue
#483D8B
ΔE00 5.44
Royal
#0C1793
ΔE00 7.28
Midnight Blue
#191970
ΔE00 7.90
Cobalt
#0047AB
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A338F #8F862A
analogous
#2A668F #2A338F #542A8F
triadic
#2A338F #8F2A33 #338F2A
tetradic
#2A338F #8F2A66 #8F862A #2A8F54
square
#2A338F #8F2A66 #8F862A #2A8F54
split-complementary
#2A338F #8F542A #668F2A
monochromatic
#0E1130 #1C2260 #2A338F #3844BE #626CD1
Accessibility & contrast
On white
10.67
#2A338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2A338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A338F
10.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A338F | 1.00 | 10.67 | 1.97 | 10.67 |
| #FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a338f; /* rgb */ color: rgb(42, 51, 143); /* oklch */ color: oklch(37.6% 0.150 272.5);
Tailwind
colors: {
custom: {
50: '#726ab1',
500: '#2a338f',
950: '#000000',
},
}SCSS
$custom: #2a338f; $custom-light: #726ab1; $custom-dark: #000000;
JSON
{
"hex": "#2a338f",
"rgb": {
"r": 42,
"g": 51,
"b": 143
},
"hsl": {
"h": 234.653,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.37582,
"c": 0.15033,
"h": 272.5
},
"luminance": 0.04843
}Semantic roles & 50–950 ramp
primary
#2A338F
secondary
#B7AF5E
accent
#D14ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80