#2F4EA8#2F4EA8
#2F4EA8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.149 H 266.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EA8 |
|---|---|
| RGB | rgb(47, 78, 168) |
| HSL | hsl(225, 56%, 42%) |
| HSV | hsv(225, 72%, 66%) |
| CMYK | cmyk(72%, 53.6%, 0%, 34.1%) |
| CIE-LAB | lab(35.75, 20.32, -51.80) |
| CIE-LCH | lch(35.75, 55.64, 291.42°) |
| OKLab | oklab(45.35% -0.0099 -0.149) |
| OKLCH | oklch(45.35% 0.149 266.2) |
| XYZ | xyz(10.9621, 8.8791, 38.1743) |
| Luminance | 0.0888 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.19
Sapphire
#0F52BA
ΔE00 3.36
Cobalt (survey)
#1E488F
ΔE00 4.39
Dusk Blue
#26538D
ΔE00 5.24
Denim Blue
#3B5B92
ΔE00 5.48
Blue Blue
#2242C7
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EA8 #A8892F
analogous
#2F8BA8 #2F4EA8 #4D2FA8
triadic
#2F4EA8 #A82F4E #4EA82F
tetradic
#2F4EA8 #A82F8B #A8892F #2FA84D
square
#2F4EA8 #A82F8B #A8892F #2FA84D
split-complementary
#2F4EA8 #A84D2F #8BA82F
monochromatic
#142248 #223878 #2F4EA8 #486ACC #7891D9
Accessibility & contrast
On white
7.56
#2F4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#2F4EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4EA8
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EA8 | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E5AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2f4ea8; /* rgb */ color: rgb(47, 78, 168); /* oklch */ color: oklch(45.4% 0.149 266.2);
Tailwind
colors: {
custom: {
50: '#777fc2',
500: '#2f4ea8',
950: '#000000',
},
}SCSS
$custom: #2f4ea8; $custom-light: #777fc2; $custom-dark: #000000;
JSON
{
"hex": "#2f4ea8",
"rgb": {
"r": 47,
"g": 78,
"b": 168
},
"hsl": {
"h": 224.628,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.4535,
"c": 0.14936,
"h": 266.2
},
"luminance": 0.0888
}Semantic roles & 50–950 ramp
primary
#2F4EA8
secondary
#C1AD71
accent
#B948E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81