#2F48A8#2F48A8
#2F48A8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.1% C 0.157 H 268.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2F48A8 |
|---|---|
| RGB | rgb(47, 72, 168) |
| HSL | hsl(228, 56%, 42%) |
| HSV | hsv(228, 72%, 66%) |
| CMYK | cmyk(72%, 57.1%, 0%, 34.1%) |
| CIE-LAB | lab(34.12, 24.31, -54.45) |
| CIE-LCH | lch(34.12, 59.63, 294.06°) |
| OKLab | oklab(44.12% -0.0049 -0.1569) |
| OKLCH | oklch(44.12% 0.157 268.2) |
| XYZ | xyz(10.5551, 8.0651, 38.0387) |
| Luminance | 0.0807 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.12
Blue Blue
#2242C7
ΔE00 4.67
Cobalt (survey)
#1E488F
ΔE00 4.80
Sapphire
#0F52BA
ΔE00 4.86
Sapphire (survey)
#2138AB
ΔE00 4.95
Blueberry
#464196
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F48A8 #A88F2F
analogous
#2F85A8 #2F48A8 #522FA8
triadic
#2F48A8 #A82F48 #48A82F
tetradic
#2F48A8 #A82F85 #A88F2F #2FA852
square
#2F48A8 #A82F85 #A88F2F #2FA852
split-complementary
#2F48A8 #A8522F #85A82F
monochromatic
#141F48 #223478 #2F48A8 #4863CC #788CD9
Accessibility & contrast
On white
8.04
#2F48A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#2F48A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F48A8
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F48A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F48A8 | 1.00 | 8.04 | 2.61 | 8.04 |
| #FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#004BA6
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2f48a8; /* rgb */ color: rgb(47, 72, 168); /* oklch */ color: oklch(44.1% 0.157 268.2);
Tailwind
colors: {
custom: {
50: '#787ac3',
500: '#2f48a8',
950: '#000000',
},
}SCSS
$custom: #2f48a8; $custom-light: #787ac3; $custom-dark: #000000;
JSON
{
"hex": "#2f48a8",
"rgb": {
"r": 47,
"g": 72,
"b": 168
},
"hsl": {
"h": 227.603,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.4412,
"c": 0.15699,
"h": 268.2
},
"luminance": 0.08066
}Semantic roles & 50–950 ramp
primary
#2F48A8
secondary
#C1B171
accent
#C048E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81