#2F48A7#2F48A7
#2F48A7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.0% C 0.156 H 268.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2F48A7 |
|---|---|
| RGB | rgb(47, 72, 167) |
| HSL | hsl(228, 56%, 42%) |
| HSV | hsv(228, 72%, 65%) |
| CMYK | cmyk(71.9%, 56.9%, 0%, 34.5%) |
| CIE-LAB | lab(34.04, 23.93, -53.98) |
| CIE-LCH | lch(34.04, 59.04, 293.91°) |
| OKLab | oklab(44.04% -0.005 -0.1555) |
| OKLCH | oklch(44.04% 0.156 268.2) |
| XYZ | xyz(10.4623, 8.0280, 37.5499) |
| Luminance | 0.0803 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.10
Cobalt (survey)
#1E488F
ΔE00 4.67
Blue Blue
#2242C7
ΔE00 4.81
Sapphire
#0F52BA
ΔE00 4.90
Sapphire (survey)
#2138AB
ΔE00 4.99
Blueberry
#464196
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F48A7 #A78E2F
analogous
#2F84A7 #2F48A7 #522FA7
triadic
#2F48A7 #A72F48 #48A72F
tetradic
#2F48A7 #A72F84 #A78E2F #2FA752
square
#2F48A7 #A72F84 #A78E2F #2FA752
split-complementary
#2F48A7 #A7522F #84A72F
monochromatic
#141F47 #223377 #2F48A7 #4863CB #788CD9
Accessibility & contrast
On white
8.06
#2F48A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#2F48A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F48A7
8.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F48A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F48A7 | 1.00 | 8.06 | 2.61 | 8.06 |
| #FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2f48a7; /* rgb */ color: rgb(47, 72, 167); /* oklch */ color: oklch(44.0% 0.156 268.2);
Tailwind
colors: {
custom: {
50: '#787ac2',
500: '#2f48a7',
950: '#000000',
},
}SCSS
$custom: #2f48a7; $custom-light: #787ac2; $custom-dark: #000000;
JSON
{
"hex": "#2f48a7",
"rgb": {
"r": 47,
"g": 72,
"b": 167
},
"hsl": {
"h": 227.5,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.44038,
"c": 0.1556,
"h": 268.2
},
"luminance": 0.08029
}Semantic roles & 50–950 ramp
primary
#2F48A7
secondary
#C1B071
accent
#C048DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81