Skip to content

#2c22af

a dark, vivid blue · cool · closest name: Medium Blue

RGB
44, 34, 175
HSL
244°, 68%, 41%
CMYK
75, 81, 0, 31
Luminance
0.0477

At a glance

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

Hex
#2c22af
Hue
244°
blue
Saturation
68%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0477
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.74:1
Closest name
Medium Blue
ΔE2000 4.7
Where it sits
Hue244° of 360°
Saturation68%
Lightness41%
Temperature
Warm ← → Cool81% 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#2c22af
RGBrgb(44, 34, 175)
HSLhsl(244, 68%, 41%)
CMYKcmyk(75%, 81%, 0%, 31%)
LABlab(26.1 49.4 -71.8)
LCHlch(26.1 87.2 304.5)
OKLCHoklch(0.385 0.208 273.6)
Decimal2892463
Display P3color(display-p3 0.173 0.133 0.686)

Copy-ready code

/* CSS */
color: #2c22af;
background-color: #2c22af;
/* Tailwind (arbitrary) */
class="text-[#2c22af] bg-[#2c22af]"
/* SCSS */
$brand: #2c22af;
/* SwiftUI */
Color(red: 0.173, green: 0.133, blue: 0.686)
/* Android */
Color.parseColor("#2c22af")
/* Flutter */
Color(0xFF2C22AF)
/* Python / OpenCV (BGR) */
(175, 34, 44)

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 #2c22af · 10.74:1
Use #ffffffAAA at every size.
Aa
White text · 10.74:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.95:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2c22af as text scores 10.74:1 on white and 1.95:1 on black.

Accessibility — WCAG contrast

Aa
#2c22af on white: 10.74:1
AA ✓ pass · AA-large · AAA
Aa
#2c22af on black: 1.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0044B3
deuteranopia · #0037AD
tritanopia · #004E69

Color scale — 50 to 950

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

#F4F3FB
#E9E8F8
#CDCAF2
#A6A1ED
#7A72E4
#4E43DB
#3428CD
#2c22af
#221B89
#1D1763
#120E3E
Base = 700Lightest = 50 · #F4F3FBDarkest = 950 · #120E3E
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E9E8F8;
  --brand-200: #CDCAF2;
  --brand-300: #A6A1ED;
  --brand-400: #7A72E4;
  --brand-500: #4E43DB;
  --brand-600: #3428CD;
  --brand-700: #2c22af;
  --brand-800: #221B89;
  --brand-900: #1D1763;
  --brand-950: #120E3E;
  --brand: #2c22af;
  --brand-ink: #ffffff;
}

Colors that work with #2c22af

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#F5F4FA
Tinted page background
Border#C3C0ED
Hairlines and dividers
Muted text#504B9B
Captions on the surface
Accent#AF951D
Second voice, not a rival
Dark variant#1B156B
Hover, pressed, headers
Light variant#EBEAFB
Selected rows, tints
Dark surface#151424
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 #2c22af

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#A5AF22
Analogous left#225EAF
Analogous right#7322AF
Split-complement 1#AF7322
Split-complement 2#5EAF22
Triadic 1#AF2C22
Triadic 2#22AF2C
Tetradic#AF225E

RGB percentages

Red17.3%
Green13.3%
Blue68.6%

CMYK percentages

Cyan74.9%
Magenta80.6%
Yellow0.0%
Key (black)31.4%

Color previews

#2c22af text on a black background

contrast 1.95:1

Card sample

#2c22af text on a white background

contrast 10.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 34, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 34, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c22af;
background: linear-gradient(135deg, #2c22af, #8A22AF);

Monochromatic scale

Palettes built from #2c22af

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.

#2c22af in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#2c22af, answered

What color is #2c22af?

#2c22af is a dark vivid blue, closest to Medium Blue (ΔE2000 4.7). It sits at 244° on the hue wheel with 68% saturation and 41% lightness, which reads as cool.

What is the RGB value of #2c22af?

rgb(44, 34, 175) — 44 red, 34 green and 175 blue out of 255, or 17.3% / 13.3% / 68.6% by channel.

Is #2c22af a light or a dark color?

It is a dark color. Relative luminance is 0.0477 and perceived brightness is 27%, so white text on it reaches 10.74:1.

Should I use black or white text on #2c22af?

White. It scores 10.74:1 against #2c22af, versus 1.95:1 for black — AAA at any size.

What is the complementary color of #2c22af?

#A5AF22 sits directly opposite on the wheel. Softer options are the split-complements #AF7322 and #5EAF22, which give the same contrast with far less vibration.

What colors go well with #2c22af?

For interface work: #F5F4FA as the surface, #C3C0ED for borders, #504B9B for secondary text, #AF951D as an accent and #1B156B for hover and pressed states. For a palette, the analogous pair #225EAF and #7322AF stays calm, while #A5AF22 is the loudest partner.

What is #2c22af in CMYK for printing?

cmyk(75%, 81%, 0%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2c22af warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6022AF; nudged cooler, #2044B1.

Work with #2c22af in the Color Lab