Skip to content

#21189e

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

RGB
33, 24, 158
HSL
244°, 74%, 36%
CMYK
79, 85, 0, 38
Luminance
0.0345

At a glance

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

Hex
#21189e
Hue
244°
blue
Saturation
74%
vivid
Lightness
36%
dark
Brightness
62%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0345
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
12.43:1
Closest name
Dark Blue
ΔE2000 4.9
Where it sits
Hue244° of 360°
Saturation74%
Lightness36%
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#21189e
RGBrgb(33, 24, 158)
HSLhsl(244, 74%, 36%)
CMYKcmyk(79%, 85%, 0%, 38%)
LABlab(21.7 48.1 -68.8)
LCHlch(21.7 83.9 305.0)
OKLCHoklch(0.347 0.199 271.9)
Decimal2168990
Display P3color(display-p3 0.129 0.094 0.620)

Copy-ready code

/* CSS */
color: #21189e;
background-color: #21189e;
/* Tailwind (arbitrary) */
class="text-[#21189e] bg-[#21189e]"
/* SCSS */
$brand: #21189e;
/* SwiftUI */
Color(red: 0.129, green: 0.094, blue: 0.620)
/* Android */
Color.parseColor("#21189e")
/* Flutter */
Color(0xFF21189E)
/* Python / OpenCV (BGR) */
(158, 24, 33)

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

Accessibility — WCAG contrast

Aa
#21189e on white: 12.43:1
AA ✓ pass · AA-large · AAA
Aa
#21189e on black: 1.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003AA2
deuteranopia · #002D9C
tritanopia · #00445D

Color scale — 50 to 950

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

#F4F3FC
#E8E7F8
#CBC8F3
#A39EF0
#756DE9
#473CE1
#2C20D4
#251BB1
#21189e
#191467
#100C40
Base = 800Lightest = 50 · #F4F3FCDarkest = 950 · #100C40
:root {
  --brand-50: #F4F3FC;
  --brand-100: #E8E7F8;
  --brand-200: #CBC8F3;
  --brand-300: #A39EF0;
  --brand-400: #756DE9;
  --brand-500: #473CE1;
  --brand-600: #2C20D4;
  --brand-700: #251BB1;
  --brand-800: #21189e;
  --brand-900: #191467;
  --brand-950: #100C40;
  --brand: #21189e;
  --brand-ink: #ffffff;
}

Colors that work with #21189e

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#A28814
Second voice, not a rival
Dark variant#17116F
Hover, pressed, headers
Light variant#EAE9FC
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 #21189e

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#959E18
Analogous left#18529E
Analogous right#64189E
Split-complement 1#9E6418
Split-complement 2#529E18
Triadic 1#9E2118
Triadic 2#189E21
Tetradic#9E1852

RGB percentages

Red12.9%
Green9.4%
Blue62.0%

CMYK percentages

Cyan79.1%
Magenta84.8%
Yellow0.0%
Key (black)38.0%

Color previews

#21189e text on a black background

contrast 1.69:1

Card sample

#21189e text on a white background

contrast 12.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 24, 158, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 24, 158, 0.45);
Border & gradient
Gradient panel
border: 3px solid #21189e;
background: linear-gradient(135deg, #21189e, #7A189E);

Monochromatic scale

Palettes built from #21189e

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.

#21189e 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.

#21189e, answered

What color is #21189e?

#21189e is a dark vivid blue, closest to Dark Blue (ΔE2000 4.9). It sits at 244° on the hue wheel with 74% saturation and 36% lightness, which reads as cool.

What is the RGB value of #21189e?

rgb(33, 24, 158) — 33 red, 24 green and 158 blue out of 255, or 12.9% / 9.4% / 62% by channel.

Is #21189e a light or a dark color?

It is a dark color. Relative luminance is 0.0345 and perceived brightness is 23%, so white text on it reaches 12.43:1.

Should I use black or white text on #21189e?

White. It scores 12.43:1 against #21189e, versus 1.69:1 for black — AAA at any size.

What is the complementary color of #21189e?

#959E18 sits directly opposite on the wheel. Softer options are the split-complements #9E6418 and #529E18, which give the same contrast with far less vibration.

What colors go well with #21189e?

For interface work: #F5F4FA as the surface, #C3C0ED for borders, #504B9B for secondary text, #A28814 as an accent and #17116F for hover and pressed states. For a palette, the analogous pair #18529E and #64189E stays calm, while #959E18 is the loudest partner.

What is #21189e in CMYK for printing?

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

Is #21189e 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 #52189E; nudged cooler, #163AA0.

Work with #21189e in the Color Lab