#2A4F98#2A4F98
#2A4F98 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.1% C 0.127 H 262.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4F98 |
|---|---|
| RGB | rgb(42, 79, 152) |
| HSL | hsl(220, 57%, 38%) |
| HSV | hsv(220, 72%, 60%) |
| CMYK | cmyk(72.4%, 48%, 0%, 40.4%) |
| CIE-LAB | lab(34.70, 12.82, -43.89) |
| CIE-LCH | lch(34.70, 45.73, 286.28°) |
| OKLab | oklab(44.14% -0.0171 -0.1258) |
| OKLCH | oklch(44.14% 0.127 262.3) |
| XYZ | xyz(9.4163, 8.3502, 30.8152) |
| Luminance | 0.0835 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.53
Dusk Blue
#26538D
ΔE00 2.82
Cobalt
#0047AB
ΔE00 3.84
Denim Blue
#3B5B92
ΔE00 4.19
Sapphire
#0F52BA
ΔE00 4.38
Light Navy
#155084
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4F98 #98732A
analogous
#2A8698 #2A4F98 #3C2A98
triadic
#2A4F98 #982A4F #4F982A
tetradic
#2A4F98 #982A86 #98732A #2A983C
square
#2A4F98 #982A86 #98732A #2A983C
split-complementary
#2A4F98 #983C2A #86982A
monochromatic
#101D38 #1D3668 #2A4F98 #3768C8 #678CD5
Accessibility & contrast
On white
7.86
#2A4F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#2A4F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4F98
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4F98 | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#0E4D97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2a4f98; /* rgb */ color: rgb(42, 79, 152); /* oklch */ color: oklch(44.1% 0.127 262.3);
Tailwind
colors: {
custom: {
50: '#727fb7',
500: '#2a4f98',
950: '#000000',
},
}SCSS
$custom: #2a4f98; $custom-light: #727fb7; $custom-dark: #000000;
JSON
{
"hex": "#2a4f98",
"rgb": {
"r": 42,
"g": 79,
"b": 152
},
"hsl": {
"h": 219.818,
"s": 56.701,
"l": 38.039
},
"oklch": {
"l": 0.44135,
"c": 0.12698,
"h": 262.3
},
"luminance": 0.08351
}Semantic roles & 50–950 ramp
primary
#2A4F98
secondary
#BB9D62
accent
#AD48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80