Skip to content

#151821

a deep, soft blue · cool · closest name: Black

RGB
21, 24, 33
HSL
225°, 22%, 11%
CMYK
36, 27, 0, 87
Luminance
0.0092

At a glance

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

Hex
#151821
Hue
225°
blue
Saturation
22%
soft
Lightness
11%
deep
Brightness
13%
HSV value
Perceived
10%
weighted brightness
Luminance
0.0092
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Soft
Best ink
White
17.73:1
Closest name
Black
ΔE2000 7.8
Where it sits
Hue225° of 360°
Saturation22%
Lightness11%
Temperature
Warm ← → Cool76% 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#151821
RGBrgb(21, 24, 33)
HSLhsl(225, 22%, 11%)
CMYKcmyk(36%, 27%, 0%, 87%)
LABlab(8.3 1.3 -6.7)
LCHlch(8.3 6.8 281.1)
OKLCHoklch(0.210 0.018 270.4)
Decimal1382433
Display P3color(display-p3 0.082 0.094 0.129)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#151821 on white: 17.73:1
AA ✓ pass · AA-large · AAA
Aa
#151821 on black: 1.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #151921
deuteranopia · #141821
tritanopia · #121A1B

Color scale — 50 to 950

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

#F6F7F9
#EDEEF2
#D7DBE4
#BAC1D3
#98A2BE
#7682A8
#5F6D96
#4F5B7D
#3F4964
#31374A
#151821
Base = 950Lightest = 50 · #F6F7F9Darkest = 950 · #151821
:root {
  --brand-50: #F6F7F9;
  --brand-100: #EDEEF2;
  --brand-200: #D7DBE4;
  --brand-300: #BAC1D3;
  --brand-400: #98A2BE;
  --brand-500: #7682A8;
  --brand-600: #5F6D96;
  --brand-700: #4F5B7D;
  --brand-800: #3F4964;
  --brand-900: #31374A;
  --brand-950: #151821;
  --brand: #151821;
  --brand-ink: #ffffff;
}

Colors that work with #151821

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#F6F7F9
Tinted page background
Border#CDD2DF
Hairlines and dividers
Muted text#59668C
Captions on the surface
Accent#221B14
Second voice, not a rival
Dark variant#32394E
Hover, pressed, headers
Light variant#EFF1F5
Selected rows, tints
Dark surface#161922
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 #151821

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#211E15
Analogous left#151E21
Analogous right#181521
Split-complement 1#211815
Split-complement 2#1E2115
Triadic 1#211518
Triadic 2#182115
Tetradic#21151E

RGB percentages

Red8.2%
Green9.4%
Blue12.9%

CMYK percentages

Cyan36.4%
Magenta27.3%
Yellow0.0%
Key (black)87.1%

Color previews

#151821 text on a black background

contrast 1.18:1

Card sample

#151821 text on a white background

contrast 17.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(21, 24, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(21, 24, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #151821;
background: linear-gradient(135deg, #151821, #1A1521);

Monochromatic scale

Palettes built from #151821

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.

#151821 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.

#151821, answered

What color is #151821?

#151821 is a deep soft blue, closest to Black (ΔE2000 7.8). It sits at 225° on the hue wheel with 22% saturation and 11% lightness, which reads as cool.

What is the RGB value of #151821?

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

Is #151821 a light or a dark color?

It is a dark color. Relative luminance is 0.0092 and perceived brightness is 10%, so white text on it reaches 17.73:1.

Should I use black or white text on #151821?

White. It scores 17.73:1 against #151821, versus 1.18:1 for black — AAA at any size.

What is the complementary color of #151821?

#211E15 sits directly opposite on the wheel. Softer options are the split-complements #211815 and #1E2115, which give the same contrast with far less vibration.

What colors go well with #151821?

For interface work: #F6F7F9 as the surface, #CDD2DF for borders, #59668C for secondary text, #221B14 as an accent and #32394E for hover and pressed states. For a palette, the analogous pair #151E21 and #181521 stays calm, while #211E15 is the loudest partner.

What is #151821 in CMYK for printing?

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

Is #151821 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #161521; nudged cooler, #141A22.

Work with #151821 in the Color Lab