Skip to content

#123780

a dark, electric blue · cool · closest name: midnightblue

RGB
18, 55, 128
HSL
220°, 75%, 29%
CMYK
86, 57, 0, 50
Luminance
0.0442

Every format

HEX#123780
RGBrgb(18, 55, 128)
HSLhsl(220, 75%, 29%)
CMYKcmyk(86%, 57%, 0%, 50%)
LABlab(25.0 16.8 -44.8)
LCHlch(25.0 47.8 290.5)
OKLCHoklch(0.359 0.131 262.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#123780 on white: 11.15:1
AA ✓ pass · AA-large · AAA
Aa
#123780 on black: 1.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red7.1%
Green21.6%
Blue50.2%

CMYK percentages

Cyan85.9%
Magenta57.0%
Yellow0.0%
Key (black)49.8%

Color previews

#123780 text on a black background

contrast 1.88:1

Card sample

#123780 text on a white background

contrast 11.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(18, 55, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 55, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #123780;
background: linear-gradient(135deg, #123780, #361280);

Monochromatic scale

Palettes built from #123780

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #123780 in the Color Lab