Skip to content

#17153e

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

RGB
23, 21, 62
HSL
243°, 49%, 16%
CMYK
63, 66, 0, 76
Luminance
0.0107

At a glance

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

Hex
#17153e
Hue
243°
blue
Saturation
49%
vivid
Lightness
16%
deep
Brightness
24%
HSV value
Perceived
11%
weighted brightness
Luminance
0.0107
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
17.31:1
Closest name
Midnight Blue
ΔE2000 10.1
Where it sits
Hue243° of 360°
Saturation49%
Lightness16%
Temperature
Warm ← → Cool82% 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#17153e
RGBrgb(23, 21, 62)
HSLhsl(243, 49%, 16%)
CMYKcmyk(63%, 66%, 0%, 76%)
LABlab(9.5 15.1 -26.1)
LCHlch(9.5 30.1 300.1)
OKLCHoklch(0.226 0.076 280.6)
Decimal1512766
Display P3color(display-p3 0.090 0.082 0.243)

Copy-ready code

/* CSS */
color: #17153e;
background-color: #17153e;
/* Tailwind (arbitrary) */
class="text-[#17153e] bg-[#17153e]"
/* SCSS */
$brand: #17153e;
/* SwiftUI */
Color(red: 0.090, green: 0.082, blue: 0.243)
/* Android */
Color.parseColor("#17153e")
/* Flutter */
Color(0xFF17153E)
/* Python / OpenCV (BGR) */
(62, 21, 23)

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

Accessibility — WCAG contrast

Aa
#17153e on white: 17.31:1
AA ✓ pass · AA-large · AAA
Aa
#17153e on black: 1.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001C3F
deuteranopia · #00193D
tritanopia · #051F27

Color scale — 50 to 950

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

#F5F4FA
#EAEAF6
#D1CFEC
#AEABE3
#8581D4
#5D57C6
#443EB7
#383498
#2D297A
#242159
#17153e
Base = 950Lightest = 50 · #F5F4FADarkest = 950 · #17153e
:root {
  --brand-50: #F5F4FA;
  --brand-100: #EAEAF6;
  --brand-200: #D1CFEC;
  --brand-300: #AEABE3;
  --brand-400: #8581D4;
  --brand-500: #5D57C6;
  --brand-600: #443EB7;
  --brand-700: #383498;
  --brand-800: #2D297A;
  --brand-900: #242159;
  --brand-950: #17153e;
  --brand: #17153e;
  --brand-ink: #ffffff;
}

Colors that work with #17153e

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#C4C2EA
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#403713
Second voice, not a rival
Dark variant#23205F
Hover, pressed, headers
Light variant#EDECF9
Selected rows, tints
Dark surface#141424
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 #17153e

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#3C3E15
Analogous left#15283E
Analogous right#2C153E
Split-complement 1#3E2C15
Split-complement 2#283E15
Triadic 1#3E1715
Triadic 2#153E17
Tetradic#3E1528

RGB percentages

Red9.0%
Green8.2%
Blue24.3%

CMYK percentages

Cyan62.9%
Magenta66.1%
Yellow0.0%
Key (black)75.7%

Color previews

#17153e text on a black background

contrast 1.21:1

Card sample

#17153e text on a white background

contrast 17.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(23, 21, 62, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 21, 62, 0.45);
Border & gradient
Gradient panel
border: 3px solid #17153e;
background: linear-gradient(135deg, #17153e, #32153E);

Monochromatic scale

Palettes built from #17153e

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.

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

#17153e, answered

What color is #17153e?

#17153e is a deep vivid blue, closest to Midnight Blue (ΔE2000 10.1). It sits at 243° on the hue wheel with 49% saturation and 16% lightness, which reads as cool.

What is the RGB value of #17153e?

rgb(23, 21, 62) — 23 red, 21 green and 62 blue out of 255, or 9% / 8.2% / 24.3% by channel.

Is #17153e a light or a dark color?

It is a dark color. Relative luminance is 0.0107 and perceived brightness is 11%, so white text on it reaches 17.31:1.

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

White. It scores 17.31:1 against #17153e, versus 1.21:1 for black — AAA at any size.

What is the complementary color of #17153e?

#3C3E15 sits directly opposite on the wheel. Softer options are the split-complements #3E2C15 and #283E15, which give the same contrast with far less vibration.

What colors go well with #17153e?

For interface work: #F5F4FA as the surface, #C4C2EA for borders, #4E4B9B for secondary text, #403713 as an accent and #23205F for hover and pressed states. For a palette, the analogous pair #15283E and #2C153E stays calm, while #3C3E15 is the loudest partner.

What is #17153e in CMYK for printing?

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

Is #17153e warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #26153E; nudged cooler, #14223F.

Work with #17153e in the Color Lab