#281fba
a dark, vivid blue · warm · closest name: navy
RGB
40, 31, 186
HSL
244°, 71%, 43%
CMYK
79, 83, 0, 27
Luminance
0.0498
Every format
| HEX | #281fba |
| RGB | rgb(40, 31, 186) |
| HSL | hsl(244, 71%, 43%) |
| CMYK | cmyk(79%, 83%, 0%, 27%) |
| LAB | lab(26.7 53.9 -77.5) |
| LCH | lch(26.7 94.4 304.8) |
| OKLCH | oklch(0.392 0.224 271.6) |
Copy-ready code
/* CSS */
color: #281fba;
background-color: #281fba;
/* Tailwind (arbitrary) */
class="text-[#281fba] bg-[#281fba]"
/* SCSS */
$brand: #281fba;
/* SwiftUI */
Color(red: 0.157, green: 0.122, blue: 0.729)
/* Android */
Color.parseColor("#281fba")Accessibility — WCAG contrast
Aa
#281fba on white: 10.52:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#281fba on black: 2.00:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green12.2%
Blue72.9%
CMYK percentages
Cyan78.5%
Magenta83.3%
Yellow0.0%
Key (black)27.1%
Color previews
#281fba text on a black background
contrast 2.00:1
Card sample
#281fba text on a white background
contrast 10.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #281fba;
Background color
Panel with #281fba background
background-color: #281fba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #281fba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 31, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 31, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #281fba; background: linear-gradient(135deg, #281fba, #8F1FBA);