#2F4EA5#2F4EA5
#2F4EA5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.145 H 266.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EA5 |
|---|---|
| RGB | rgb(47, 78, 165) |
| HSL | hsl(224, 56%, 42%) |
| HSV | hsv(224, 72%, 65%) |
| CMYK | cmyk(71.5%, 52.7%, 0%, 35.3%) |
| CIE-LAB | lab(35.53, 19.19, -50.36) |
| CIE-LCH | lch(35.53, 53.89, 290.86°) |
| OKLab | oklab(45.12% -0.0102 -0.1448) |
| OKLCH | oklch(45.12% 0.145 266) |
| XYZ | xyz(10.6858, 8.7686, 36.7194) |
| Luminance | 0.0877 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.21
Sapphire
#0F52BA
ΔE00 3.56
Cobalt (survey)
#1E488F
ΔE00 4.02
Dusk Blue
#26538D
ΔE00 4.92
Denim Blue
#3B5B92
ΔE00 5.26
Blue Blue
#2242C7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EA5 #A5862F
analogous
#2F89A5 #2F4EA5 #4B2FA5
triadic
#2F4EA5 #A52F4E #4EA52F
tetradic
#2F4EA5 #A52F89 #A5862F #2FA54B
square
#2F4EA5 #A52F89 #A5862F #2FA54B
split-complementary
#2F4EA5 #A54B2F #89A52F
monochromatic
#142146 #213775 #2F4EA5 #4769CB #7690D8
Accessibility & contrast
On white
7.63
#2F4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2F4EA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EA5
7.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EA5 | 1.00 | 7.63 | 2.75 | 7.63 |
| #FFFFFF | 7.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ea5; /* rgb */ color: rgb(47, 78, 165); /* oklch */ color: oklch(45.1% 0.145 266.0);
Tailwind
colors: {
custom: {
50: '#777fc0',
500: '#2f4ea5',
950: '#000000',
},
}SCSS
$custom: #2f4ea5; $custom-light: #777fc0; $custom-dark: #000000;
JSON
{
"hex": "#2f4ea5",
"rgb": {
"r": 47,
"g": 78,
"b": 165
},
"hsl": {
"h": 224.237,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.45118,
"c": 0.14514,
"h": 266
},
"luminance": 0.0877
}Semantic roles & 50–950 ramp
primary
#2F4EA5
secondary
#C0AB70
accent
#B849DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81