#2A4298#2A4298
#2A4298 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.3% C 0.144 H 267.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4298 |
|---|---|
| RGB | rgb(42, 66, 152) |
| HSL | hsl(227, 57%, 38%) |
| HSV | hsv(227, 72%, 60%) |
| CMYK | cmyk(72.4%, 56.6%, 0%, 40.4%) |
| CIE-LAB | lab(31.01, 21.58, -49.86) |
| CIE-LCH | lch(31.01, 54.33, 293.40°) |
| OKLab | oklab(41.33% -0.0055 -0.1436) |
| OKLCH | oklch(41.33% 0.144 267.8) |
| XYZ | xyz(8.5686, 6.6548, 30.5326) |
| Luminance | 0.0666 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.88
Cobalt
#0047AB
ΔE00 3.93
Sapphire (survey)
#2138AB
ΔE00 4.51
Blueberry
#464196
ΔE00 4.89
Darkish Blue
#014182
ΔE00 5.71
Darkslateblue
#483D8B
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4298 #98802A
analogous
#2A7998 #2A4298 #492A98
triadic
#2A4298 #982A42 #42982A
tetradic
#2A4298 #982A79 #98802A #2A9849
square
#2A4298 #982A79 #98802A #2A9849
split-complementary
#2A4298 #98492A #79982A
monochromatic
#101838 #1D2D68 #2A4298 #3757C8 #677FD5
Accessibility & contrast
On white
9.01
#2A4298 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#2A4298 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4298
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4298 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4298 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a4298; /* rgb */ color: rgb(42, 66, 152); /* oklch */ color: oklch(41.3% 0.144 267.8);
Tailwind
colors: {
custom: {
50: '#7376b7',
500: '#2a4298',
950: '#000000',
},
}SCSS
$custom: #2a4298; $custom-light: #7376b7; $custom-dark: #000000;
JSON
{
"hex": "#2a4298",
"rgb": {
"r": 42,
"g": 66,
"b": 152
},
"hsl": {
"h": 226.909,
"s": 56.701,
"l": 38.039
},
"oklch": {
"l": 0.41329,
"c": 0.14372,
"h": 267.8
},
"luminance": 0.06656
}Semantic roles & 50–950 ramp
primary
#2A4298
secondary
#BBA862
accent
#BF48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80