#2F56B2#2F56B2
#2F56B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.153 H 264.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2F56B2 |
|---|---|
| RGB | rgb(47, 86, 178) |
| HSL | hsl(222, 58%, 44%) |
| HSV | hsv(222, 74%, 70%) |
| CMYK | cmyk(73.6%, 51.7%, 0%, 30.2%) |
| CIE-LAB | lab(38.68, 18.81, -53.00) |
| CIE-LCH | lch(38.68, 56.24, 289.54°) |
| OKLab | oklab(47.8% -0.0156 -0.1524) |
| OKLCH | oklch(47.8% 0.153 264.1) |
| XYZ | xyz(12.5331, 10.4729, 43.4718) |
| Luminance | 0.1047 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.23
Denim Blue
#3B5B92
ΔE00 4.55
Denim
#1560BD
ΔE00 4.71
Cobalt
#0047AB
ΔE00 5.05
Dusk Blue
#26538D
ΔE00 5.32
Dusky Blue
#475F94
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F56B2 #B28B2F
analogous
#2F98B2 #2F56B2 #492FB2
triadic
#2F56B2 #B22F56 #56B22F
tetradic
#2F56B2 #B22F98 #B28B2F #2FB249
square
#2F56B2 #B22F98 #B28B2F #2FB249
split-complementary
#2F56B2 #B2492F #98B22F
monochromatic
#152751 #223F82 #2F56B2 #4E75D0 #7E9BDD
Accessibility & contrast
On white
6.79
#2F56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#2F56B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F56B2
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F56B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F56B2 | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2f56b2; /* rgb */ color: rgb(47, 86, 178); /* oklch */ color: oklch(47.8% 0.153 264.1);
Tailwind
colors: {
custom: {
50: '#7985ca',
500: '#2f56b2',
950: '#000000',
},
}SCSS
$custom: #2f56b2; $custom-light: #7985ca; $custom-dark: #000000;
JSON
{
"hex": "#2f56b2",
"rgb": {
"r": 47,
"g": 86,
"b": 178
},
"hsl": {
"h": 222.137,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.47797,
"c": 0.15321,
"h": 264.1
},
"luminance": 0.10474
}Semantic roles & 50–950 ramp
primary
#2F56B2
secondary
#C6AE77
accent
#B346E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82