#381fbc
a dark, vivid blue · warm · closest name: navy
RGB
56, 31, 188
HSL
250°, 72%, 43%
CMYK
70, 84, 0, 26
Luminance
0.0545
Every format
| HEX | #381fbc |
| RGB | rgb(56, 31, 188) |
| HSL | hsl(250, 72%, 43%) |
| CMYK | cmyk(70%, 84%, 0%, 26%) |
| LAB | lab(28.0 55.5 -76.4) |
| LCH | lch(28.0 94.5 306.0) |
| OKLCH | oklch(0.404 0.222 276.9) |
Copy-ready code
/* CSS */
color: #381fbc;
background-color: #381fbc;
/* Tailwind (arbitrary) */
class="text-[#381fbc] bg-[#381fbc]"
/* SCSS */
$brand: #381fbc;
/* SwiftUI */
Color(red: 0.220, green: 0.122, blue: 0.737)
/* Android */
Color.parseColor("#381fbc")Accessibility — WCAG contrast
Aa
#381fbc on white: 10.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#381fbc on black: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red22.0%
Green12.2%
Blue73.7%
CMYK percentages
Cyan70.2%
Magenta83.5%
Yellow0.0%
Key (black)26.3%
Color previews
#381fbc text on a black background
contrast 2.09:1
Card sample
#381fbc text on a white background
contrast 10.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #381fbc;
Background color
Panel with #381fbc background
background-color: #381fbc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #381fbc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(56, 31, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(56, 31, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #381fbc; background: linear-gradient(135deg, #381fbc, #A11FBC);