#2F4DA7#2F4DA7
#2F4DA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.149 H 266.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4DA7 |
|---|---|
| RGB | rgb(47, 77, 167) |
| HSL | hsl(225, 56%, 42%) |
| HSV | hsv(225, 72%, 65%) |
| CMYK | cmyk(71.9%, 53.9%, 0%, 34.5%) |
| CIE-LAB | lab(35.40, 20.61, -51.77) |
| CIE-LCH | lch(35.40, 55.72, 291.71°) |
| OKLab | oklab(45.06% -0.0092 -0.1489) |
| OKLCH | oklch(45.06% 0.149 266.5) |
| XYZ | xyz(10.7988, 8.7010, 37.6621) |
| Luminance | 0.0870 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.08
Sapphire
#0F52BA
ΔE00 3.63
Cobalt (survey)
#1E488F
ΔE00 4.26
Dusk Blue
#26538D
ΔE00 5.37
Denim Blue
#3B5B92
ΔE00 5.71
Blue Blue
#2242C7
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4DA7 #A7892F
analogous
#2F89A7 #2F4DA7 #4D2FA7
triadic
#2F4DA7 #A72F4D #4DA72F
tetradic
#2F4DA7 #A72F89 #A7892F #2FA74D
square
#2F4DA7 #A72F89 #A7892F #2FA74D
split-complementary
#2F4DA7 #A74D2F #89A72F
monochromatic
#142147 #223777 #2F4DA7 #4869CB #7890D9
Accessibility & contrast
On white
7.66
#2F4DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#2F4DA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4DA7
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4DA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4DA7 | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B59AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4da7; /* rgb */ color: rgb(47, 77, 167); /* oklch */ color: oklch(45.1% 0.149 266.5);
Tailwind
colors: {
custom: {
50: '#777ec2',
500: '#2f4da7',
950: '#000000',
},
}SCSS
$custom: #2f4da7; $custom-light: #777ec2; $custom-dark: #000000;
JSON
{
"hex": "#2f4da7",
"rgb": {
"r": 47,
"g": 77,
"b": 167
},
"hsl": {
"h": 225,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.45063,
"c": 0.14923,
"h": 266.5
},
"luminance": 0.08702
}Semantic roles & 50–950 ramp
primary
#2F4DA7
secondary
#C1AD71
accent
#BA48DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81