#2F56B6#2F56B6
#2F56B6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.159 H 264.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2F56B6 |
|---|---|
| RGB | rgb(47, 86, 182) |
| HSL | hsl(223, 59%, 45%) |
| HSV | hsv(223, 74%, 71%) |
| CMYK | cmyk(74.2%, 52.7%, 0%, 28.6%) |
| CIE-LAB | lab(38.96, 20.32, -54.89) |
| CIE-LCH | lch(38.96, 58.54, 290.32°) |
| OKLab | oklab(48.1% -0.0152 -0.158) |
| OKLCH | oklch(48.1% 0.159 264.5) |
| XYZ | xyz(12.9406, 10.6359, 45.6178) |
| Luminance | 0.1064 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.19
Denim
#1560BD
ΔE00 4.76
Denim Blue
#3B5B92
ΔE00 5.01
Cobalt
#0047AB
ΔE00 5.19
Dusk Blue
#26538D
ΔE00 5.83
Dusky Blue
#475F94
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F56B6 #B68F2F
analogous
#2F99B6 #2F56B6 #4C2FB6
triadic
#2F56B6 #B62F56 #56B62F
tetradic
#2F56B6 #B62F99 #B68F2F #2FB64C
square
#2F56B6 #B62F99 #B68F2F #2FB64C
split-complementary
#2F56B6 #B64C2F #99B62F
monochromatic
#162855 #223F85 #2F56B6 #5076D2 #819CDE
Accessibility & contrast
On white
6.71
#2F56B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#2F56B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F56B6
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F56B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F56B6 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2f56b6; /* rgb */ color: rgb(47, 86, 182); /* oklch */ color: oklch(48.1% 0.159 264.5);
Tailwind
colors: {
custom: {
50: '#7a85cd',
500: '#2f56b6',
950: '#000000',
},
}SCSS
$custom: #2f56b6; $custom-light: #7a85cd; $custom-dark: #000000;
JSON
{
"hex": "#2f56b6",
"rgb": {
"r": 47,
"g": 86,
"b": 182
},
"hsl": {
"h": 222.667,
"s": 58.952,
"l": 44.902
},
"oklch": {
"l": 0.48101,
"c": 0.15873,
"h": 264.5
},
"luminance": 0.10637
}Semantic roles & 50–950 ramp
primary
#2F56B6
secondary
#C7B179
accent
#B546E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82