#2F4EA7#2F4EA7
#2F4EA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.148 H 266.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EA7 |
|---|---|
| RGB | rgb(47, 78, 167) |
| HSL | hsl(225, 56%, 42%) |
| HSV | hsv(225, 72%, 65%) |
| CMYK | cmyk(71.9%, 53.3%, 0%, 34.5%) |
| CIE-LAB | lab(35.68, 19.94, -51.32) |
| CIE-LCH | lch(35.68, 55.06, 291.23°) |
| OKLab | oklab(45.27% -0.01 -0.1476) |
| OKLCH | oklch(45.27% 0.148 266.1) |
| XYZ | xyz(10.8693, 8.8420, 37.6856) |
| Luminance | 0.0884 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.19
Sapphire
#0F52BA
ΔE00 3.42
Cobalt (survey)
#1E488F
ΔE00 4.26
Dusk Blue
#26538D
ΔE00 5.13
Denim Blue
#3B5B92
ΔE00 5.41
Blue Blue
#2242C7
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EA7 #A7882F
analogous
#2F8AA7 #2F4EA7 #4C2FA7
triadic
#2F4EA7 #A72F4E #4EA72F
tetradic
#2F4EA7 #A72F8A #A7882F #2FA74C
square
#2F4EA7 #A72F8A #A7882F #2FA74C
split-complementary
#2F4EA7 #A74C2F #8AA72F
monochromatic
#142147 #223877 #2F4EA7 #486ACB #7891D9
Accessibility & contrast
On white
7.59
#2F4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#2F4EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EA7
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EA7 | 1.00 | 7.59 | 2.77 | 7.59 |
| #FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ea7; /* rgb */ color: rgb(47, 78, 167); /* oklch */ color: oklch(45.3% 0.148 266.1);
Tailwind
colors: {
custom: {
50: '#777fc2',
500: '#2f4ea7',
950: '#000000',
},
}SCSS
$custom: #2f4ea7; $custom-light: #777fc2; $custom-dark: #000000;
JSON
{
"hex": "#2f4ea7",
"rgb": {
"r": 47,
"g": 78,
"b": 167
},
"hsl": {
"h": 224.5,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.45272,
"c": 0.14796,
"h": 266.1
},
"luminance": 0.08843
}Semantic roles & 50–950 ramp
primary
#2F4EA7
secondary
#C1AC71
accent
#B848DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81