Skip to content

#42657c

a dark, soft blue · cool · closest name: darkslategray

RGB
66, 101, 124
HSL
204°, 31%, 37%
CMYK
47, 19, 0, 51
Luminance
0.1192

Every format

HEX#42657c
RGBrgb(66, 101, 124)
HSLhsl(204, 31%, 37%)
CMYKcmyk(47%, 19%, 0%, 51%)
LABlab(41.1 -5.9 -16.8)
LCHlch(41.1 17.8 250.7)
OKLCHoklch(0.490 0.055 238.2)

Copy-ready code

/* CSS */
color: #42657c;
background-color: #42657c;
/* Tailwind (arbitrary) */
class="text-[#42657c] bg-[#42657c]"
/* SCSS */
$brand: #42657c;
/* SwiftUI */
Color(red: 0.259, green: 0.396, blue: 0.486)
/* Android */
Color.parseColor("#42657c")

Accessibility — WCAG contrast

Aa
#42657c on white: 6.21:1
AA ✓ pass · AA-large · AAA
Aa
#42657c on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.9%
Green39.6%
Blue48.6%

CMYK percentages

Cyan46.8%
Magenta18.5%
Yellow0.0%
Key (black)51.4%

Color previews

#42657c text on a black background

contrast 3.38:1

Card sample

#42657c text on a white background

contrast 6.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 101, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 101, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42657c;
background: linear-gradient(135deg, #42657c, #46427C);

Monochromatic scale

Palettes built from #42657c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #42657c in the Color Lab