#401abc
a dark, electric blue · warm · closest name: navy
RGB
64, 26, 188
HSL
254°, 76%, 42%
CMYK
66, 86, 0, 26
Luminance
0.0546
Every format
| HEX | #401abc |
| RGB | rgb(64, 26, 188) |
| HSL | hsl(254, 76%, 42%) |
| CMYK | cmyk(66%, 86%, 0%, 26%) |
| LAB | lab(28.0 58.0 -76.4) |
| LCH | lch(28.0 95.9 307.2) |
| OKLCH | oklch(0.406 0.224 280.4) |
Copy-ready code
/* CSS */
color: #401abc;
background-color: #401abc;
/* Tailwind (arbitrary) */
class="text-[#401abc] bg-[#401abc]"
/* SCSS */
$brand: #401abc;
/* SwiftUI */
Color(red: 0.251, green: 0.102, blue: 0.737)
/* Android */
Color.parseColor("#401abc")Accessibility — WCAG contrast
Aa
#401abc on white: 10.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#401abc on black: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green10.2%
Blue73.7%
CMYK percentages
Cyan66.0%
Magenta86.2%
Yellow0.0%
Key (black)26.3%
Color previews
#401abc text on a black background
contrast 2.09:1
Card sample
#401abc text on a white background
contrast 10.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #401abc;
Background color
Panel with #401abc background
background-color: #401abc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #401abc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 26, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 26, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #401abc; background: linear-gradient(135deg, #401abc, #AC1ABC);