Skip to content

#22016d

a deep, electric violet · cool · closest name: Navy

RGB
34, 1, 109
HSL
258°, 98%, 22%
CMYK
69, 99, 0, 57
Luminance
0.0147

At a glance

Every number on this page in one read: what #22016d is made of, how bright it looks, and which way it leans.

Hex
#22016d
Hue
258°
violet
Saturation
98%
electric
Lightness
22%
deep
Brightness
43%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0147
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
16.24:1
Closest name
Navy
ΔE2000 3.6
Where it sits
Hue258° of 360°
Saturation98%
Lightness22%
Temperature
Warm ← → Cool73% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#22016d
RGBrgb(34, 1, 109)
HSLhsl(258, 98%, 22%)
CMYKcmyk(69%, 99%, 0%, 57%)
LABlab(12.4 42.9 -53.4)
LCHlch(12.4 68.4 308.8)
OKLCHoklch(0.265 0.157 281.7)
Decimal2228589
Display P3color(display-p3 0.133 0.004 0.427)

Copy-ready code

/* CSS */
color: #22016d;
background-color: #22016d;
/* Tailwind (arbitrary) */
class="text-[#22016d] bg-[#22016d]"
/* SCSS */
$brand: #22016d;
/* SwiftUI */
Color(red: 0.133, green: 0.004, blue: 0.427)
/* Android */
Color.parseColor("#22016d")
/* Flutter */
Color(0xFF22016D)
/* Python / OpenCV (BGR) */
(109, 1, 34)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #22016d · 16.24:1
Use #ffffffAAA at every size.
Aa
White text · 16.24:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.29:1
AA fail · AA large fail · AAA fail
Reading the other direction: #22016d as text scores 16.24:1 on white and 1.29:1 on black.

Accessibility — WCAG contrast

Aa
#22016d on white: 16.24:1
AA ✓ pass · AA-large · AAA
Aa
#22016d on black: 1.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002470
deuteranopia · #001C6B
tritanopia · #00283D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #22016d is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F1FD
#EBE3FC
#D2C1FB
#B190FE
#8B58FD
#6421FD
#4C02F3
#3F02CA
#3201A2
#22016d
#190449
Base = 900Lightest = 50 · #F5F1FDDarkest = 950 · #190449
:root {
  --brand-50: #F5F1FD;
  --brand-100: #EBE3FC;
  --brand-200: #D2C1FB;
  --brand-300: #B190FE;
  --brand-400: #8B58FD;
  --brand-500: #6421FD;
  --brand-600: #4C02F3;
  --brand-700: #3F02CA;
  --brand-800: #3201A2;
  --brand-900: #22016d;
  --brand-950: #190449;
  --brand: #22016d;
  --brand-ink: #ffffff;
}

Colors that work with #22016d

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#686E00
Second voice, not a rival
Dark variant#27017E
Hover, pressed, headers
Light variant#EDE6FF
Selected rows, tints
Dark surface#191424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #22016d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#4C6D01
Analogous left#01166D
Analogous right#58016D
Split-complement 1#6D5801
Split-complement 2#166D01
Triadic 1#6D2201
Triadic 2#016D22
Tetradic#6D0116

RGB percentages

Red13.3%
Green0.4%
Blue42.7%

CMYK percentages

Cyan68.8%
Magenta99.1%
Yellow0.0%
Key (black)57.3%

Color previews

#22016d text on a black background

contrast 1.29:1

Card sample

#22016d text on a white background

contrast 16.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(34, 1, 109, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 1, 109, 0.45);
Border & gradient
Gradient panel
border: 3px solid #22016d;
background: linear-gradient(135deg, #22016d, #6A016D);

Monochromatic scale

Palettes built from #22016d

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#22016d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#22016d, answered

What color is #22016d?

#22016d is a deep electric violet, closest to Navy (ΔE2000 3.6). It sits at 258° on the hue wheel with 98% saturation and 22% lightness, which reads as cool.

What is the RGB value of #22016d?

rgb(34, 1, 109) — 34 red, 1 green and 109 blue out of 255, or 13.3% / 0.4% / 42.7% by channel.

Is #22016d a light or a dark color?

It is a dark color. Relative luminance is 0.0147 and perceived brightness is 16%, so white text on it reaches 16.24:1.

Should I use black or white text on #22016d?

White. It scores 16.24:1 against #22016d, versus 1.29:1 for black — AAA at any size.

What is the complementary color of #22016d?

#4C6D01 sits directly opposite on the wheel. Softer options are the split-complements #6D5801 and #166D01, which give the same contrast with far less vibration.

What colors go well with #22016d?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #686E00 as an accent and #27017E for hover and pressed states. For a palette, the analogous pair #01166D and #58016D stays calm, while #4C6D01 is the loudest partner.

What is #22016d in CMYK for printing?

cmyk(69%, 99%, 0%, 57%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #22016d warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4A016D; nudged cooler, #00076E.

Work with #22016d in the Color Lab