Skip to content

#2a103c

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

RGB
42, 16, 60
HSL
276°, 58%, 15%
CMYK
30, 73, 0, 77
Luminance
0.0119

Every format

HEX#2a103c
RGBrgb(42, 16, 60)
HSLhsl(276, 58%, 15%)
CMYKcmyk(30%, 73%, 0%, 77%)
LABlab(10.5 22.9 -23.0)
LCHlch(10.5 32.4 314.9)
OKLCHoklch(0.238 0.083 308.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2a103c on white: 16.97:1
AA ✓ pass · AA-large · AAA
Aa
#2a103c on black: 1.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green6.3%
Blue23.5%

CMYK percentages

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

Color previews

#2a103c text on a black background

contrast 1.24:1

Card sample

#2a103c text on a white background

contrast 16.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a103c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2a103c in the Color Lab