Skip to content

#020b21

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

RGB
2, 11, 33
HSL
223°, 89%, 7%
CMYK
94, 67, 0, 87
Luminance
0.0036

At a glance

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

Hex
#020b21
Hue
223°
blue
Saturation
89%
electric
Lightness
7%
deep
Brightness
13%
HSV value
Perceived
5%
weighted brightness
Luminance
0.0036
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
19.58:1
Closest name
Black
ΔE2000 11.5
Where it sits
Hue223° of 360°
Saturation89%
Lightness7%
Temperature
Warm ← → Cool93% 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#020b21
RGBrgb(2, 11, 33)
HSLhsl(223, 89%, 7%)
CMYKcmyk(94%, 67%, 0%, 87%)
LABlab(3.3 3.1 -14.6)
LCHlch(3.3 14.9 281.9)
OKLCHoklch(0.155 0.050 260.6)
Decimal133921
Display P3color(display-p3 0.008 0.043 0.129)

Copy-ready code

/* CSS */
color: #020b21;
background-color: #020b21;
/* Tailwind (arbitrary) */
class="text-[#020b21] bg-[#020b21]"
/* SCSS */
$brand: #020b21;
/* SwiftUI */
Color(red: 0.008, green: 0.043, blue: 0.129)
/* Android */
Color.parseColor("#020b21")
/* Flutter */
Color(0xFF020B21)
/* Python / OpenCV (BGR) */
(33, 11, 2)

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

Accessibility — WCAG contrast

Aa
#020b21 on white: 19.58:1
AA ✓ pass · AA-large · AAA
Aa
#020b21 on black: 1.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #020E22
deuteranopia · #000A21
tritanopia · #001014

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #020b21 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.

#F2F5FD
#E5EBFB
#C4D3F8
#95B2F9
#608CF5
#2B65F2
#0E4DE7
#0C40C0
#09339A
#0B286F
#020b21
Base = 950Lightest = 50 · #F2F5FDDarkest = 950 · #020b21
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFB;
  --brand-200: #C4D3F8;
  --brand-300: #95B2F9;
  --brand-400: #608CF5;
  --brand-500: #2B65F2;
  --brand-600: #0E4DE7;
  --brand-700: #0C40C0;
  --brand-800: #09339A;
  --brand-900: #0B286F;
  --brand-950: #020b21;
  --brand: #020b21;
  --brand-ink: #ffffff;
}

Colors that work with #020b21

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#F4F6FA
Tinted page background
Border#C0CDED
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#221001
Second voice, not a rival
Dark variant#072878
Hover, pressed, headers
Light variant#E7EEFE
Selected rows, tints
Dark surface#141924
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 #020b21

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#211802
Analogous left#021B21
Analogous right#090221
Split-complement 1#210902
Split-complement 2#1B2102
Triadic 1#21020B
Triadic 2#0B2102
Tetradic#21021B

RGB percentages

Red0.8%
Green4.3%
Blue12.9%

CMYK percentages

Cyan93.9%
Magenta66.7%
Yellow0.0%
Key (black)87.1%

Color previews

#020b21 text on a black background

contrast 1.07:1

Card sample

#020b21 text on a white background

contrast 19.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 11, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 11, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #020b21;
background: linear-gradient(135deg, #020b21, #0E0221);

Monochromatic scale

Palettes built from #020b21

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.

#020b21 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

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

#020b21, answered

What color is #020b21?

#020b21 is a deep electric blue, closest to Black (ΔE2000 11.5). It sits at 223° on the hue wheel with 89% saturation and 7% lightness, which reads as cool.

What is the RGB value of #020b21?

rgb(2, 11, 33) — 2 red, 11 green and 33 blue out of 255, or 0.8% / 4.3% / 12.9% by channel.

Is #020b21 a light or a dark color?

It is a dark color. Relative luminance is 0.0036 and perceived brightness is 5%, so white text on it reaches 19.58:1.

Should I use black or white text on #020b21?

White. It scores 19.58:1 against #020b21, versus 1.07:1 for black — AAA at any size.

What is the complementary color of #020b21?

#211802 sits directly opposite on the wheel. Softer options are the split-complements #210902 and #1B2102, which give the same contrast with far less vibration.

What colors go well with #020b21?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #221001 as an accent and #072878 for hover and pressed states. For a palette, the analogous pair #021B21 and #090221 stays calm, while #211802 is the loudest partner.

What is #020b21 in CMYK for printing?

cmyk(94%, 67%, 0%, 87%). 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 #020b21 warm or cool?

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

Work with #020b21 in the Color Lab