#2F50B9#2F50B9
#2F50B9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.170 H 266.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2F50B9 |
|---|---|
| RGB | rgb(47, 80, 185) |
| HSL | hsl(226, 59%, 45%) |
| HSV | hsv(226, 75%, 73%) |
| CMYK | cmyk(74.6%, 56.8%, 0%, 27.5%) |
| CIE-LAB | lab(37.56, 25.39, -58.93) |
| CIE-LCH | lch(37.56, 64.17, 293.31°) |
| OKLab | oklab(47.11% -0.0103 -0.17) |
| OKLCH | oklch(47.11% 0.17 266.5) |
| XYZ | xyz(12.7948, 9.8431, 47.1151) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.76
Cobalt
#0047AB
ΔE00 4.25
Blue Blue
#2242C7
ΔE00 4.78
Blue (survey)
#0343DF
ΔE00 6.04
Warm Blue
#4B57DB
ΔE00 6.41
Denim Blue
#3B5B92
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F50B9 #B9982F
analogous
#2F95B9 #2F50B9 #532FB9
triadic
#2F50B9 #B92F50 #50B92F
tetradic
#2F50B9 #B92F95 #B9982F #2FB953
square
#2F50B9 #B92F95 #B9982F #2FB953
split-complementary
#2F50B9 #B9532F #95B92F
monochromatic
#162657 #233B88 #2F50B9 #5271D3 #8399DF
Accessibility & contrast
On white
7.07
#2F50B9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2F50B9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F50B9
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F50B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F50B9 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2f50b9; /* rgb */ color: rgb(47, 80, 185); /* oklch */ color: oklch(47.1% 0.170 266.5);
Tailwind
colors: {
custom: {
50: '#7b80cf',
500: '#2f50b9',
950: '#000000',
},
}SCSS
$custom: #2f50b9; $custom-light: #7b80cf; $custom-dark: #000000;
JSON
{
"hex": "#2f50b9",
"rgb": {
"r": 47,
"g": 80,
"b": 185
},
"hsl": {
"h": 225.652,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.47113,
"c": 0.17027,
"h": 266.5
},
"luminance": 0.09844
}Semantic roles & 50–950 ramp
primary
#2F50B9
secondary
#C9B67B
accent
#BD45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82