#2F5EC7#2F5EC7
#2F5EC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.172 H 263.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F5EC7 |
|---|---|
| RGB | rgb(47, 94, 199) |
| HSL | hsl(221, 62%, 48%) |
| HSV | hsv(221, 76%, 78%) |
| CMYK | cmyk(76.4%, 52.8%, 0%, 22%) |
| CIE-LAB | lab(42.36, 21.52, -59.31) |
| CIE-LCH | lch(42.36, 63.09, 289.94°) |
| OKLab | oklab(51.06% -0.0198 -0.1708) |
| OKLCH | oklch(51.06% 0.172 263.4) |
| XYZ | xyz(15.4801, 12.7315, 55.6633) |
| Luminance | 0.1273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 3.41
Azul
#1D5DEC
ΔE00 4.46
Sapphire
#0F52BA
ΔE00 4.47
French Blue
#436BAD
ΔE00 5.32
Royal Blue
#4169E1
ΔE00 5.40
Warm Blue
#4B57DB
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F5EC7 #C7982F
analogous
#2FAAC7 #2F5EC7 #4C2FC7
triadic
#2F5EC7 #C72F5E #5EC72F
tetradic
#2F5EC7 #C72FAA #C7982F #2FC74C
square
#2F5EC7 #C72FAA #C7982F #2FC74C
split-complementary
#2F5EC7 #C74C2F #AAC72F
monochromatic
#182F64 #234795 #2F5EC7 #5B82D8 #8CA8E4
Accessibility & contrast
On white
5.92
#2F5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#2F5EC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F5EC7
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F5EC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F5EC7 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#106BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #2f5ec7; /* rgb */ color: rgb(47, 94, 199); /* oklch */ color: oklch(51.1% 0.172 263.4);
Tailwind
colors: {
custom: {
50: '#7e8bd9',
500: '#2f5ec7',
950: '#000000',
},
}SCSS
$custom: #2f5ec7; $custom-light: #7e8bd9; $custom-dark: #000000;
JSON
{
"hex": "#2f5ec7",
"rgb": {
"r": 47,
"g": 94,
"b": 199
},
"hsl": {
"h": 221.447,
"s": 61.789,
"l": 48.235
},
"oklch": {
"l": 0.51061,
"c": 0.17197,
"h": 263.4
},
"luminance": 0.12733
}Semantic roles & 50–950 ramp
primary
#2F5EC7
secondary
#CEB784
accent
#B343E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B15
muted
#7C7C83