#2F4AAF#2F4AAF
#2F4AAF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.164 H 267.8°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AAF |
|---|---|
| RGB | rgb(47, 74, 175) |
| HSL | hsl(227, 58%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(73.1%, 57.7%, 0%, 31.4%) |
| CIE-LAB | lab(35.19, 25.60, -56.87) |
| CIE-LCH | lch(35.19, 62.37, 294.24°) |
| OKLab | oklab(45.1% -0.0062 -0.164) |
| OKLCH | oklch(45.1% 0.164 267.8) |
| XYZ | xyz(11.3563, 8.5958, 41.6098) |
| Luminance | 0.0860 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.25
Blue Blue
#2242C7
ΔE00 4.13
Sapphire
#0F52BA
ΔE00 4.15
Sapphire (survey)
#2138AB
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 5.46
Ocean Blue
#4F42B5
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AAF #AF942F
analogous
#2F8AAF #2F4AAF #542FAF
triadic
#2F4AAF #AF2F4A #4AAF2F
tetradic
#2F4AAF #AF2F8A #AF942F #2FAF54
square
#2F4AAF #AF2F8A #AF942F #2FAF54
split-complementary
#2F4AAF #AF542F #8AAF2F
monochromatic
#15214F #22367F #2F4AAF #4C68CF #7C91DC
Accessibility & contrast
On white
7.72
#2F4AAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#2F4AAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AAF
7.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AAF | 1.00 | 7.72 | 2.72 | 7.72 |
| #FFFFFF | 7.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4aaf; /* rgb */ color: rgb(47, 74, 175); /* oklch */ color: oklch(45.1% 0.164 267.8);
Tailwind
colors: {
custom: {
50: '#797cc8',
500: '#2f4aaf',
950: '#000000',
},
}SCSS
$custom: #2f4aaf; $custom-light: #797cc8; $custom-dark: #000000;
JSON
{
"hex": "#2f4aaf",
"rgb": {
"r": 47,
"g": 74,
"b": 175
},
"hsl": {
"h": 227.344,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.45097,
"c": 0.16412,
"h": 267.8
},
"luminance": 0.08597
}Semantic roles & 50–950 ramp
primary
#2F4AAF
secondary
#C4B475
accent
#C047E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82