#2F4FA8#2F4FA8
#2F4FA8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.148 H 265.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4FA8 |
|---|---|
| RGB | rgb(47, 79, 168) |
| HSL | hsl(224, 56%, 42%) |
| HSV | hsv(224, 72%, 66%) |
| CMYK | cmyk(72%, 53%, 0%, 34.1%) |
| CIE-LAB | lab(36.03, 19.66, -51.35) |
| CIE-LCH | lch(36.03, 54.99, 290.94°) |
| OKLab | oklab(45.56% -0.0108 -0.1477) |
| OKLCH | oklch(45.56% 0.148 265.8) |
| XYZ | xyz(11.0337, 9.0223, 38.1982) |
| Luminance | 0.0902 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.17
Cobalt
#0047AB
ΔE00 3.33
Cobalt (survey)
#1E488F
ΔE00 4.42
Dusk Blue
#26538D
ΔE00 5.02
Denim Blue
#3B5B92
ΔE00 5.19
Blue Blue
#2242C7
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4FA8 #A8882F
analogous
#2F8CA8 #2F4FA8 #4B2FA8
triadic
#2F4FA8 #A82F4F #4FA82F
tetradic
#2F4FA8 #A82F8C #A8882F #2FA84B
square
#2F4FA8 #A82F8C #A8882F #2FA84B
split-complementary
#2F4FA8 #A84B2F #8CA82F
monochromatic
#142248 #223978 #2F4FA8 #486BCC #7892D9
Accessibility & contrast
On white
7.49
#2F4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#2F4FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4FA8
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4FA8 | 1.00 | 7.49 | 2.80 | 7.49 |
| #FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#135BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2f4fa8; /* rgb */ color: rgb(47, 79, 168); /* oklch */ color: oklch(45.6% 0.148 265.8);
Tailwind
colors: {
custom: {
50: '#777fc2',
500: '#2f4fa8',
950: '#000000',
},
}SCSS
$custom: #2f4fa8; $custom-light: #777fc2; $custom-dark: #000000;
JSON
{
"hex": "#2f4fa8",
"rgb": {
"r": 47,
"g": 79,
"b": 168
},
"hsl": {
"h": 224.132,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.45559,
"c": 0.14808,
"h": 265.8
},
"luminance": 0.09023
}Semantic roles & 50–950 ramp
primary
#2F4FA8
secondary
#C1AC71
accent
#B848E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81