#2A398E#2A398E
#2A398E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.141 H 270.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2A398E |
|---|---|
| RGB | rgb(42, 57, 142) |
| HSL | hsl(231, 54%, 36%) |
| HSV | hsv(231, 70%, 56%) |
| CMYK | cmyk(70.4%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(27.77, 23.88, -49.00) |
| CIE-LCH | lch(27.77, 54.51, 295.98°) |
| OKLab | oklab(38.65% 0.0017 -0.1412) |
| OKLCH | oklch(38.65% 0.141 270.7) |
| XYZ | xyz(7.2988, 5.3708, 26.2380) |
| Luminance | 0.0537 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.35
Blueberry
#464196
ΔE00 4.66
Darkslateblue
#483D8B
ΔE00 5.28
Cobalt (survey)
#1E488F
ΔE00 6.25
Cobalt
#0047AB
ΔE00 6.64
Darkish Blue
#014182
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A398E #8E7F2A
analogous
#2A6B8E #2A398E #4D2A8E
triadic
#2A398E #8E2A39 #398E2A
tetradic
#2A398E #8E2A6B #8E7F2A #2A8E4D
square
#2A398E #8E2A6B #8E7F2A #2A8E4D
split-complementary
#2A398E #8E4D2A #6B8E2A
monochromatic
#0E1330 #1C265F #2A398E #384CBD #6272D1
Accessibility & contrast
On white
10.12
#2A398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#2A398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A398E
10.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A398E | 1.00 | 10.12 | 2.07 | 10.12 |
| #FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2a398e; /* rgb */ color: rgb(42, 57, 142); /* oklch */ color: oklch(38.7% 0.141 270.7);
Tailwind
colors: {
custom: {
50: '#716fb0',
500: '#2a398e',
950: '#000000',
},
}SCSS
$custom: #2a398e; $custom-light: #716fb0; $custom-dark: #000000;
JSON
{
"hex": "#2a398e",
"rgb": {
"r": 42,
"g": 57,
"b": 142
},
"hsl": {
"h": 231,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.38654,
"c": 0.14121,
"h": 270.7
},
"luminance": 0.05371
}Semantic roles & 50–950 ramp
primary
#2A398E
secondary
#B6A95D
accent
#C84ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F