#2F4EA6#2F4EA6
#2F4EA6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.147 H 266.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EA6 |
|---|---|
| RGB | rgb(47, 78, 166) |
| HSL | hsl(224, 56%, 42%) |
| HSV | hsv(224, 72%, 65%) |
| CMYK | cmyk(71.7%, 53%, 0%, 34.9%) |
| CIE-LAB | lab(35.61, 19.56, -50.84) |
| CIE-LCH | lch(35.61, 54.47, 291.05°) |
| OKLab | oklab(45.2% -0.0101 -0.1462) |
| OKLCH | oklch(45.2% 0.147 266) |
| XYZ | xyz(10.7772, 8.8052, 37.2006) |
| Luminance | 0.0881 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.19
Sapphire
#0F52BA
ΔE00 3.49
Cobalt (survey)
#1E488F
ΔE00 4.14
Dusk Blue
#26538D
ΔE00 5.03
Denim Blue
#3B5B92
ΔE00 5.33
Blue Blue
#2242C7
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EA6 #A6872F
analogous
#2F8AA6 #2F4EA6 #4C2FA6
triadic
#2F4EA6 #A62F4E #4EA62F
tetradic
#2F4EA6 #A62F8A #A6872F #2FA64C
square
#2F4EA6 #A62F8A #A6872F #2FA64C
split-complementary
#2F4EA6 #A64C2F #8AA62F
monochromatic
#142147 #213876 #2F4EA6 #476ACB #7790D8
Accessibility & contrast
On white
7.61
#2F4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#2F4EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EA6
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EA6 | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1359A9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ea6; /* rgb */ color: rgb(47, 78, 166); /* oklch */ color: oklch(45.2% 0.147 266.0);
Tailwind
colors: {
custom: {
50: '#777fc1',
500: '#2f4ea6',
950: '#000000',
},
}SCSS
$custom: #2f4ea6; $custom-light: #777fc1; $custom-dark: #000000;
JSON
{
"hex": "#2f4ea6",
"rgb": {
"r": 47,
"g": 78,
"b": 166
},
"hsl": {
"h": 224.37,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.45195,
"c": 0.14655,
"h": 266
},
"luminance": 0.08806
}Semantic roles & 50–950 ramp
primary
#2F4EA6
secondary
#C1AC70
accent
#B849DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81