Skip to content

#151a21

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

RGB
21, 26, 33
HSL
215°, 22%, 11%
CMYK
36, 21, 0, 87
Luminance
0.0101

At a glance

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

Hex
#151a21
Hue
215°
blue
Saturation
22%
soft
Lightness
11%
deep
Brightness
13%
HSV value
Perceived
10%
weighted brightness
Luminance
0.0101
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Soft
Best ink
White
17.48:1
Closest name
Black
ΔE2000 7.3
Where it sits
Hue215° of 360°
Saturation22%
Lightness11%
Temperature
Warm ← → Cool80% 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#151a21
RGBrgb(21, 26, 33)
HSLhsl(215, 22%, 11%)
CMYKcmyk(36%, 21%, 0%, 87%)
LABlab(9.1 -0.2 -5.6)
LCHlch(9.1 5.6 268.1)
OKLCHoklch(0.216 0.016 256.8)
Decimal1382945
Display P3color(display-p3 0.082 0.102 0.129)

Copy-ready code

/* CSS */
color: #151a21;
background-color: #151a21;
/* Tailwind (arbitrary) */
class="text-[#151a21] bg-[#151a21]"
/* SCSS */
$brand: #151a21;
/* SwiftUI */
Color(red: 0.082, green: 0.102, blue: 0.129)
/* Android */
Color.parseColor("#151a21")
/* Flutter */
Color(0xFF151A21)
/* Python / OpenCV (BGR) */
(33, 26, 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 #151a21 · 17.48:1
Use #ffffffAAA at every size.
Aa
White text · 17.48:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.20:1
AA fail · AA large fail · AAA fail
Reading the other direction: #151a21 as text scores 17.48:1 on white and 1.20:1 on black.

Accessibility — WCAG contrast

Aa
#151a21 on white: 17.48:1
AA ✓ pass · AA-large · AAA
Aa
#151a21 on black: 1.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #181A21
deuteranopia · #161921
tritanopia · #121B1C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #151a21 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
#EDEFF2
#D7DDE4
#BAC5D3
#98A8BE
#768BA8
#5F7696
#4F627D
#3F4F64
#313B4A
#151a21
Base = 950Lightest = 50 · #F6F7F9Darkest = 950 · #151a21
:root {
  --brand-50: #F6F7F9;
  --brand-100: #EDEFF2;
  --brand-200: #D7DDE4;
  --brand-300: #BAC5D3;
  --brand-400: #98A8BE;
  --brand-500: #768BA8;
  --brand-600: #5F7696;
  --brand-700: #4F627D;
  --brand-800: #3F4F64;
  --brand-900: #313B4A;
  --brand-950: #151a21;
  --brand: #151a21;
  --brand-ink: #ffffff;
}

Colors that work with #151a21

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#CDD5DF
Hairlines and dividers
Muted text#596F8C
Captions on the surface
Accent#221914
Second voice, not a rival
Dark variant#323D4E
Hover, pressed, headers
Light variant#EFF2F5
Selected rows, tints
Dark surface#161B22
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 #151a21

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#211C15
Analogous left#152021
Analogous right#161521
Split-complement 1#211615
Split-complement 2#202115
Triadic 1#21151A
Triadic 2#1A2115
Tetradic#211520

RGB percentages

Red8.2%
Green10.2%
Blue12.9%

CMYK percentages

Cyan36.4%
Magenta21.2%
Yellow0.0%
Key (black)87.1%

Color previews

#151a21 text on a black background

contrast 1.20:1

Card sample

#151a21 text on a white background

contrast 17.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #151a21

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.

#151a21 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.

#151a21, answered

What color is #151a21?

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

What is the RGB value of #151a21?

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

Is #151a21 a light or a dark color?

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

Should I use black or white text on #151a21?

White. It scores 17.48:1 against #151a21, versus 1.20:1 for black — AAA at any size.

What is the complementary color of #151a21?

#211C15 sits directly opposite on the wheel. Softer options are the split-complements #211615 and #202115, which give the same contrast with far less vibration.

What colors go well with #151a21?

For interface work: #F6F7F9 as the surface, #CDD5DF for borders, #596F8C for secondary text, #221914 as an accent and #323D4E for hover and pressed states. For a palette, the analogous pair #152021 and #161521 stays calm, while #211C15 is the loudest partner.

What is #151a21 in CMYK for printing?

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

Is #151a21 warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #151621; nudged cooler, #0B0E12.

Work with #151a21 in the Color Lab