#2F47A6#2F47A6
#2F47A6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.155 H 268.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2F47A6 |
|---|---|
| RGB | rgb(47, 71, 166) |
| HSL | hsl(228, 56%, 42%) |
| HSV | hsv(228, 72%, 65%) |
| CMYK | cmyk(71.7%, 57.2%, 0%, 34.9%) |
| CIE-LAB | lab(33.70, 24.22, -53.94) |
| CIE-LCH | lch(33.70, 59.13, 294.18°) |
| OKLab | oklab(43.76% -0.0042 -0.1554) |
| OKLCH | oklch(43.76% 0.155 268.4) |
| XYZ | xyz(10.3061, 7.8629, 37.0436) |
| Luminance | 0.0786 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.21
Cobalt (survey)
#1E488F
ΔE00 4.71
Sapphire (survey)
#2138AB
ΔE00 4.71
Blue Blue
#2242C7
ΔE00 4.81
Sapphire
#0F52BA
ΔE00 5.21
Blueberry
#464196
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F47A6 #A68E2F
analogous
#2F83A6 #2F47A6 #532FA6
triadic
#2F47A6 #A62F47 #47A62F
tetradic
#2F47A6 #A62F83 #A68E2F #2FA653
square
#2F47A6 #A62F83 #A68E2F #2FA653
split-complementary
#2F47A6 #A6532F #83A62F
monochromatic
#141E47 #213376 #2F47A6 #4762CB #778BD8
Accessibility & contrast
On white
8.16
#2F47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#2F47A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F47A6
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F47A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F47A6 | 1.00 | 8.16 | 2.57 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2f47a6; /* rgb */ color: rgb(47, 71, 166); /* oklch */ color: oklch(43.8% 0.155 268.4);
Tailwind
colors: {
custom: {
50: '#7779c1',
500: '#2f47a6',
950: '#000000',
},
}SCSS
$custom: #2f47a6; $custom-light: #7779c1; $custom-dark: #000000;
JSON
{
"hex": "#2f47a6",
"rgb": {
"r": 47,
"g": 71,
"b": 166
},
"hsl": {
"h": 227.899,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.43755,
"c": 0.15548,
"h": 268.4
},
"luminance": 0.07864
}Semantic roles & 50–950 ramp
primary
#2F47A6
secondary
#C1B070
accent
#C149DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81