#2F48AB#2F48AB
#2F48AB is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.161 H 268.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2F48AB |
|---|---|
| RGB | rgb(47, 72, 171) |
| HSL | hsl(228, 57%, 43%) |
| HSV | hsv(228, 73%, 67%) |
| CMYK | cmyk(72.5%, 57.9%, 0%, 32.9%) |
| CIE-LAB | lab(34.35, 25.43, -55.86) |
| CIE-LCH | lch(34.35, 61.38, 294.47°) |
| OKLab | oklab(44.37% -0.0048 -0.1611) |
| OKLCH | oklch(44.37% 0.161 268.3) |
| XYZ | xyz(10.8378, 8.1782, 39.5276) |
| Luminance | 0.0818 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.21
Blue Blue
#2242C7
ΔE00 4.27
Sapphire
#0F52BA
ΔE00 4.78
Sapphire (survey)
#2138AB
ΔE00 4.85
Cobalt (survey)
#1E488F
ΔE00 5.17
Blueberry
#464196
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F48AB #AB922F
analogous
#2F86AB #2F48AB #542FAB
triadic
#2F48AB #AB2F48 #48AB2F
tetradic
#2F48AB #AB2F86 #AB922F #2FAB54
square
#2F48AB #AB2F86 #AB922F #2FAB54
split-complementary
#2F48AB #AB542F #86AB2F
monochromatic
#15204B #22347B #2F48AB #4A64CD #7A8DDA
Accessibility & contrast
On white
7.97
#2F48AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#2F48AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F48AB
7.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F48AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F48AB | 1.00 | 7.97 | 2.64 | 7.97 |
| #FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2f48ab; /* rgb */ color: rgb(47, 72, 171); /* oklch */ color: oklch(44.4% 0.161 268.3);
Tailwind
colors: {
custom: {
50: '#797ac5',
500: '#2f48ab',
950: '#000000',
},
}SCSS
$custom: #2f48ab; $custom-light: #797ac5; $custom-dark: #000000;
JSON
{
"hex": "#2f48ab",
"rgb": {
"r": 47,
"g": 72,
"b": 171
},
"hsl": {
"h": 227.903,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.44368,
"c": 0.16113,
"h": 268.3
},
"luminance": 0.08179
}Semantic roles & 50–950 ramp
primary
#2F48AB
secondary
#C3B373
accent
#C148E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82