#2F51BF#2F51BF
#2F51BF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.177 H 266.5°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51BF |
|---|---|
| RGB | rgb(47, 81, 191) |
| HSL | hsl(226, 61%, 47%) |
| HSV | hsv(226, 75%, 75%) |
| CMYK | cmyk(75.4%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(38.29, 26.98, -61.26) |
| CIE-LCH | lch(38.29, 66.94, 293.77°) |
| OKLab | oklab(47.8% -0.0108 -0.1768) |
| OKLCH | oklch(47.8% 0.177 266.5) |
| XYZ | xyz(13.5154, 10.2493, 50.5461) |
| Luminance | 0.1025 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.95
Blue Blue
#2242C7
ΔE00 4.75
Cobalt
#0047AB
ΔE00 4.89
Blue (survey)
#0343DF
ΔE00 5.63
Warm Blue
#4B57DB
ΔE00 5.67
Denim
#1560BD
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51BF #BF9D2F
analogous
#2F99BF #2F51BF #552FBF
triadic
#2F51BF #BF2F51 #51BF2F
tetradic
#2F51BF #BF2F99 #BF9D2F #2FBF55
square
#2F51BF #BF2F99 #BF9D2F #2FBF55
split-complementary
#2F51BF #BF552F #99BF2F
monochromatic
#17275D #233C8E #2F51BF #5674D5 #879CE1
Accessibility & contrast
On white
6.88
#2F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#2F51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F51BF
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51BF | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2f51bf; /* rgb */ color: rgb(47, 81, 191); /* oklch */ color: oklch(47.8% 0.177 266.5);
Tailwind
colors: {
custom: {
50: '#7c81d3',
500: '#2f51bf',
950: '#000000',
},
}SCSS
$custom: #2f51bf; $custom-light: #7c81d3; $custom-dark: #000000;
JSON
{
"hex": "#2f51bf",
"rgb": {
"r": 47,
"g": 81,
"b": 191
},
"hsl": {
"h": 225.833,
"s": 60.504,
"l": 46.667
},
"oklch": {
"l": 0.47804,
"c": 0.17713,
"h": 266.5
},
"luminance": 0.10251
}Semantic roles & 50–950 ramp
primary
#2F51BF
secondary
#CBB97F
accent
#BE44E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83