Skip to content

#16233f

a deep, vivid blue · cool · closest name: Midnight Blue

RGB
22, 35, 63
HSL
221°, 48%, 17%
CMYK
65, 44, 0, 75
Luminance
0.0173

At a glance

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

Hex
#16233f
Hue
221°
blue
Saturation
48%
vivid
Lightness
17%
deep
Brightness
25%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0173
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
15.60:1
Closest name
Midnight Blue
ΔE2000 11.7
Where it sits
Hue221° of 360°
Saturation48%
Lightness17%
Temperature
Warm ← → Cool94% 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#16233f
RGBrgb(22, 35, 63)
HSLhsl(221, 48%, 17%)
CMYKcmyk(65%, 44%, 0%, 75%)
LABlab(14.0 4.6 -19.6)
LCHlch(14.0 20.1 283.3)
OKLCHoklch(0.260 0.056 264.1)
Decimal1450815
Display P3color(display-p3 0.086 0.137 0.247)

Copy-ready code

/* CSS */
color: #16233f;
background-color: #16233f;
/* Tailwind (arbitrary) */
class="text-[#16233f] bg-[#16233f]"
/* SCSS */
$brand: #16233f;
/* SwiftUI */
Color(red: 0.086, green: 0.137, blue: 0.247)
/* Android */
Color.parseColor("#16233f")
/* Flutter */
Color(0xFF16233F)
/* Python / OpenCV (BGR) */
(63, 35, 22)

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

Accessibility — WCAG contrast

Aa
#16233f on white: 15.60:1
AA ✓ pass · AA-large · AAA
Aa
#16233f on black: 1.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #172640
deuteranopia · #12223E
tritanopia · #00292D

Color scale — 50 to 950

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

#F4F6FA
#EAEEF5
#D0D9EC
#ACBDE2
#829CD3
#597BC5
#3F65B5
#355497
#2A4379
#223358
#16233f
Base = 950Lightest = 50 · #F4F6FADarkest = 950 · #16233f
:root {
  --brand-50: #F4F6FA;
  --brand-100: #EAEEF5;
  --brand-200: #D0D9EC;
  --brand-300: #ACBDE2;
  --brand-400: #829CD3;
  --brand-500: #597BC5;
  --brand-600: #3F65B5;
  --brand-700: #355497;
  --brand-800: #2A4379;
  --brand-900: #223358;
  --brand-950: #16233f;
  --brand: #16233f;
  --brand-ink: #ffffff;
}

Colors that work with #16233f

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#C3CFEA
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#412814
Second voice, not a rival
Dark variant#21345E
Hover, pressed, headers
Light variant#ECF0F8
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 #16233f

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#3F3216
Analogous left#16383F
Analogous right#1E163F
Split-complement 1#3F1E16
Split-complement 2#383F16
Triadic 1#3F1623
Triadic 2#233F16
Tetradic#3F1638

RGB percentages

Red8.6%
Green13.7%
Blue24.7%

CMYK percentages

Cyan65.1%
Magenta44.4%
Yellow0.0%
Key (black)75.3%

Color previews

#16233f text on a black background

contrast 1.35:1

Card sample

#16233f text on a white background

contrast 15.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 35, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 35, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #16233f;
background: linear-gradient(135deg, #16233f, #24163F);

Monochromatic scale

Palettes built from #16233f

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.

#16233f 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.

#16233f, answered

What color is #16233f?

#16233f is a deep vivid blue, closest to Midnight Blue (ΔE2000 11.7). It sits at 221° on the hue wheel with 48% saturation and 17% lightness, which reads as cool.

What is the RGB value of #16233f?

rgb(22, 35, 63) — 22 red, 35 green and 63 blue out of 255, or 8.6% / 13.7% / 24.7% by channel.

Is #16233f a light or a dark color?

It is a dark color. Relative luminance is 0.0173 and perceived brightness is 14%, so white text on it reaches 15.60:1.

Should I use black or white text on #16233f?

White. It scores 15.60:1 against #16233f, versus 1.35:1 for black — AAA at any size.

What is the complementary color of #16233f?

#3F3216 sits directly opposite on the wheel. Softer options are the split-complements #3F1E16 and #383F16, which give the same contrast with far less vibration.

What colors go well with #16233f?

For interface work: #F4F6FA as the surface, #C3CFEA for borders, #4B649B for secondary text, #412814 as an accent and #21345E for hover and pressed states. For a palette, the analogous pair #16383F and #1E163F stays calm, while #3F3216 is the loudest partner.

What is #16233f in CMYK for printing?

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

Is #16233f warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #18163F; nudged cooler, #152840.

Work with #16233f in the Color Lab