#2F4EF2#2F4EF2
#2F4EF2 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.8% C 0.245 H 267.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4EF2 |
|---|---|
| RGB | rgb(47, 78, 242) |
| HSL | hsl(230, 88%, 57%) |
| HSV | hsv(230, 81%, 95%) |
| CMYK | cmyk(80.6%, 67.8%, 0%, 5.1%) |
| CIE-LAB | lab(41.94, 47.25, -84.50) |
| CIE-LCH | lch(41.94, 96.82, 299.21°) |
| OKLab | oklab(51.84% -0.0104 -0.2448) |
| OKLCH | oklch(51.84% 0.245 267.6) |
| XYZ | xyz(19.9181, 12.4615, 85.3427) |
| Luminance | 0.1246 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Electric Blue
#0652FF
ΔE00 2.14
Warm Blue
#4B57DB
ΔE00 3.70
Blue (survey)
#0343DF
ΔE00 4.62
Azul
#1D5DEC
ΔE00 5.03
Vibrant Blue
#0339F8
ΔE00 5.14
Purpleish Blue
#6140EF
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4EF2 #F2D32F
analogous
#2FAFF2 #2F4EF2 #722FF2
triadic
#2F4EF2 #F22F4E #4EF22F
tetradic
#2F4EF2 #F22FAF #F2D32F #2FF272
square
#2F4EF2 #F22FAF #F2D32F #2FF272
split-complementary
#2F4EF2 #F2722F #AFF22F
monochromatic
#0A219D #0D2DD6 #2F4EF2 #697FF6 #A2B0F9
Accessibility & contrast
On white
6.01
#2F4EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#2F4EF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F4EF2
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4EF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4EF2 | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CF7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#007B9A
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #2f4ef2; /* rgb */ color: rgb(47, 78, 242); /* oklch */ color: oklch(51.8% 0.245 267.6);
Tailwind
colors: {
custom: {
50: '#8980f8',
500: '#2f4ef2',
950: '#000000',
},
}SCSS
$custom: #2f4ef2; $custom-light: #8980f8; $custom-dark: #000000;
JSON
{
"hex": "#2f4ef2",
"rgb": {
"r": 47,
"g": 78,
"b": 242
},
"hsl": {
"h": 230.462,
"s": 88.235,
"l": 56.667
},
"oklch": {
"l": 0.5184,
"c": 0.24507,
"h": 267.6
},
"luminance": 0.12464
}Semantic roles & 50–950 ramp
primary
#2F4EF2
secondary
#E6DA97
accent
#DD29FE
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85