Skip to content

#12103c

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

RGB
18, 16, 60
HSL
243°, 58%, 15%
CMYK
70, 73, 0, 77
Luminance
0.0083

Every format

HEX#12103c
RGBrgb(18, 16, 60)
HSLhsl(243, 58%, 15%)
CMYKcmyk(70%, 73%, 0%, 77%)
LABlab(7.5 16.9 -28.0)
LCHlch(7.5 32.7 301.1)
OKLCHoklch(0.209 0.082 278.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#12103c on white: 18.02:1
AA ✓ pass · AA-large · AAA
Aa
#12103c on black: 1.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red7.1%
Green6.3%
Blue23.5%

CMYK percentages

Cyan70.0%
Magenta73.3%
Yellow0.0%
Key (black)76.5%

Color previews

#12103c text on a black background

contrast 1.17:1

Card sample

#12103c text on a white background

contrast 18.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(18, 16, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 16, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #12103c;
background: linear-gradient(135deg, #12103c, #2F103C);

Monochromatic scale

Palettes built from #12103c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #12103c in the Color Lab