#2F4AA7#2F4AA7
#2F4AA7 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.153 H 267.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AA7 |
|---|---|
| RGB | rgb(47, 74, 167) |
| HSL | hsl(227, 56%, 42%) |
| HSV | hsv(227, 72%, 65%) |
| CMYK | cmyk(71.9%, 55.7%, 0%, 34.5%) |
| CIE-LAB | lab(34.58, 22.60, -53.10) |
| CIE-LCH | lch(34.58, 57.71, 293.06°) |
| OKLab | oklab(44.44% -0.0066 -0.1529) |
| OKLCH | oklch(44.44% 0.153 267.5) |
| XYZ | xyz(10.5937, 8.2908, 37.5937) |
| Luminance | 0.0829 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.97
Sapphire
#0F52BA
ΔE00 4.36
Cobalt (survey)
#1E488F
ΔE00 4.43
Blue Blue
#2242C7
ΔE00 5.16
Sapphire (survey)
#2138AB
ΔE00 5.66
Blueberry
#464196
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AA7 #A78C2F
analogous
#2F86A7 #2F4AA7 #502FA7
triadic
#2F4AA7 #A72F4A #4AA72F
tetradic
#2F4AA7 #A72F86 #A78C2F #2FA750
square
#2F4AA7 #A72F86 #A78C2F #2FA750
split-complementary
#2F4AA7 #A7502F #86A72F
monochromatic
#142047 #223577 #2F4AA7 #4865CB #788DD9
Accessibility & contrast
On white
7.90
#2F4AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#2F4AA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AA7
7.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AA7 | 1.00 | 7.90 | 2.66 | 7.90 |
| #FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2f4aa7; /* rgb */ color: rgb(47, 74, 167); /* oklch */ color: oklch(44.4% 0.153 267.5);
Tailwind
colors: {
custom: {
50: '#777cc2',
500: '#2f4aa7',
950: '#000000',
},
}SCSS
$custom: #2f4aa7; $custom-light: #777cc2; $custom-dark: #000000;
JSON
{
"hex": "#2f4aa7",
"rgb": {
"r": 47,
"g": 74,
"b": 167
},
"hsl": {
"h": 226.5,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.44444,
"c": 0.15305,
"h": 267.5
},
"luminance": 0.08292
}Semantic roles & 50–950 ramp
primary
#2F4AA7
secondary
#C1AF71
accent
#BD48DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81