#4f2def
a balanced, electric blue · warm · closest name: blue
RGB
79, 45, 239
HSL
251°, 86%, 56%
CMYK
67, 81, 0, 6
Luminance
0.0977
Every format
| HEX | #4f2def |
| RGB | rgb(79, 45, 239) |
| HSL | hsl(251, 86%, 56%) |
| CMYK | cmyk(67%, 81%, 0%, 6%) |
| LAB | lab(37.4 65.8 -90.2) |
| LCH | lch(37.4 111.7 306.1) |
| OKLCH | oklch(0.490 0.263 278.4) |
Copy-ready code
/* CSS */
color: #4f2def;
background-color: #4f2def;
/* Tailwind (arbitrary) */
class="text-[#4f2def] bg-[#4f2def]"
/* SCSS */
$brand: #4f2def;
/* SwiftUI */
Color(red: 0.310, green: 0.176, blue: 0.937)
/* Android */
Color.parseColor("#4f2def")Accessibility — WCAG contrast
Aa
#4f2def on white: 7.11:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f2def on black: 2.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green17.6%
Blue93.7%
CMYK percentages
Cyan66.9%
Magenta81.2%
Yellow0.0%
Key (black)6.3%
Color previews
#4f2def text on a black background
contrast 2.95:1
Card sample
#4f2def text on a white background
contrast 7.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f2def;
Background color
Panel with #4f2def background
background-color: #4f2def;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f2def;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f2def; background: linear-gradient(135deg, #4f2def, #D02DEF);