Skip to content

#241978

a dark, vivid blue · warm · closest name: midnightblue

RGB
36, 25, 120
HSL
247°, 66%, 28%
CMYK
70, 79, 0, 53
Luminance
0.0243

Every format

HEX#241978
RGBrgb(36, 25, 120)
HSLhsl(247, 66%, 28%)
CMYKcmyk(70%, 79%, 0%, 53%)
LABlab(17.6 35.7 -51.9)
LCHlch(17.6 63.0 304.5)
OKLCHoklch(0.305 0.151 277.7)

Copy-ready code

/* CSS */
color: #241978;
background-color: #241978;
/* Tailwind (arbitrary) */
class="text-[#241978] bg-[#241978]"
/* SCSS */
$brand: #241978;
/* SwiftUI */
Color(red: 0.141, green: 0.098, blue: 0.471)
/* Android */
Color.parseColor("#241978")

Accessibility — WCAG contrast

Aa
#241978 on white: 14.14:1
AA ✓ pass · AA-large · AAA
Aa
#241978 on black: 1.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red14.1%
Green9.8%
Blue47.1%

CMYK percentages

Cyan70.0%
Magenta79.2%
Yellow0.0%
Key (black)52.9%

Color previews

#241978 text on a black background

contrast 1.49:1

Card sample

#241978 text on a white background

contrast 14.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #241978;
Background color
Panel with #241978 background
background-color: #241978;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #241978;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(36, 25, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(36, 25, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #241978;
background: linear-gradient(135deg, #241978, #631978);

Monochromatic scale

Palettes built from #241978

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #241978 in the Color Lab