#2F54B8#2F54B8
#2F54B8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.164 H 265.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F54B8 |
|---|---|
| RGB | rgb(47, 84, 184) |
| HSL | hsl(224, 59%, 45%) |
| HSV | hsv(224, 74%, 72%) |
| CMYK | cmyk(74.5%, 54.3%, 0%, 27.8%) |
| CIE-LAB | lab(38.56, 22.39, -56.72) |
| CIE-LCH | lch(38.56, 60.98, 291.54°) |
| OKLab | oklab(47.84% -0.0135 -0.1634) |
| OKLCH | oklch(47.84% 0.164 265.3) |
| XYZ | xyz(12.9913, 10.4043, 46.6617) |
| Luminance | 0.1041 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.19
Cobalt
#0047AB
ΔE00 4.84
Denim
#1560BD
ΔE00 5.47
Denim Blue
#3B5B92
ΔE00 5.57
Blue Blue
#2242C7
ΔE00 6.14
Dusk Blue
#26538D
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F54B8 #B8932F
analogous
#2F98B8 #2F54B8 #4F2FB8
triadic
#2F54B8 #B82F54 #54B82F
tetradic
#2F54B8 #B82F98 #B8932F #2FB84F
square
#2F54B8 #B82F98 #B8932F #2FB84F
split-complementary
#2F54B8 #B84F2F #98B82F
monochromatic
#162757 #233E87 #2F54B8 #5274D3 #829BDF
Accessibility & contrast
On white
6.82
#2F54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#2F54B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F54B8
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F54B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F54B8 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2f54b8; /* rgb */ color: rgb(47, 84, 184); /* oklch */ color: oklch(47.8% 0.164 265.3);
Tailwind
colors: {
custom: {
50: '#7b83ce',
500: '#2f54b8',
950: '#000000',
},
}SCSS
$custom: #2f54b8; $custom-light: #7b83ce; $custom-dark: #000000;
JSON
{
"hex": "#2f54b8",
"rgb": {
"r": 47,
"g": 84,
"b": 184
},
"hsl": {
"h": 223.796,
"s": 59.307,
"l": 45.294
},
"oklch": {
"l": 0.47842,
"c": 0.16395,
"h": 265.3
},
"luminance": 0.10406
}Semantic roles & 50–950 ramp
primary
#2F54B8
secondary
#C8B37B
accent
#B845E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82