#2F51BC#2F51BC
#2F51BC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.173 H 266.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2F51BC |
|---|---|
| RGB | rgb(47, 81, 188) |
| HSL | hsl(226, 60%, 46%) |
| HSV | hsv(226, 75%, 74%) |
| CMYK | cmyk(75%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(38.05, 25.86, -59.88) |
| CIE-LCH | lch(38.05, 65.23, 293.36°) |
| OKLab | oklab(47.56% -0.0109 -0.1727) |
| OKLCH | oklch(47.56% 0.173 266.4) |
| XYZ | xyz(13.1886, 10.1186, 48.8252) |
| Luminance | 0.1012 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.74
Cobalt
#0047AB
ΔE00 4.62
Blue Blue
#2242C7
ΔE00 4.91
Blue (survey)
#0343DF
ΔE00 5.94
Warm Blue
#4B57DB
ΔE00 6.02
Denim
#1560BD
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F51BC #BC9A2F
analogous
#2F97BC #2F51BC #532FBC
triadic
#2F51BC #BC2F51 #51BC2F
tetradic
#2F51BC #BC2F97 #BC9A2F #2FBC53
square
#2F51BC #BC2F97 #BC9A2F #2FBC53
split-complementary
#2F51BC #BC532F #97BC2F
monochromatic
#17275A #233C8B #2F51BC #5473D4 #859BE0
Accessibility & contrast
On white
6.94
#2F51BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#2F51BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F51BC
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F51BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F51BC | 1.00 | 6.94 | 3.02 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2f51bc; /* rgb */ color: rgb(47, 81, 188); /* oklch */ color: oklch(47.6% 0.173 266.4);
Tailwind
colors: {
custom: {
50: '#7c81d1',
500: '#2f51bc',
950: '#000000',
},
}SCSS
$custom: #2f51bc; $custom-light: #7c81d1; $custom-dark: #000000;
JSON
{
"hex": "#2f51bc",
"rgb": {
"r": 47,
"g": 81,
"b": 188
},
"hsl": {
"h": 225.532,
"s": 60,
"l": 46.078
},
"oklch": {
"l": 0.47557,
"c": 0.1731,
"h": 266.4
},
"luminance": 0.1012
}Semantic roles & 50–950 ramp
primary
#2F51BC
secondary
#CAB77D
accent
#BD45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82