Skip to content

#18397b

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
24, 57, 123
HSL
220°, 67%, 29%
CMYK
81, 54, 0, 52
Luminance
0.0455

At a glance

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

Hex
#18397b
Hue
220°
blue
Saturation
67%
vivid
Lightness
29%
dark
Brightness
48%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0455
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.99:1
Closest name
Dark Slate Blue
ΔE2000 8.5
Where it sits
Hue220° of 360°
Saturation67%
Lightness29%
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#18397b
RGBrgb(24, 57, 123)
HSLhsl(220, 67%, 29%)
CMYKcmyk(81%, 54%, 0%, 52%)
LABlab(25.4 13.9 -41.0)
LCHlch(25.4 43.3 288.7)
OKLCHoklch(0.362 0.119 262.2)
Decimal1587579
Display P3color(display-p3 0.094 0.224 0.482)

Copy-ready code

/* CSS */
color: #18397b;
background-color: #18397b;
/* Tailwind (arbitrary) */
class="text-[#18397b] bg-[#18397b]"
/* SCSS */
$brand: #18397b;
/* SwiftUI */
Color(red: 0.094, green: 0.224, blue: 0.482)
/* Android */
Color.parseColor("#18397b")
/* Flutter */
Color(0xFF18397B)
/* Python / OpenCV (BGR) */
(123, 57, 24)

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

Accessibility — WCAG contrast

Aa
#18397b on white: 10.99:1
AA ✓ pass · AA-large · AAA
Aa
#18397b on black: 1.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0D417D
deuteranopia · #00387A
tritanopia · #004954

Color scale — 50 to 950

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

#F3F6FB
#E8EDF8
#CAD7F1
#A1BAED
#7298E3
#4376DA
#285FCD
#214FAB
#18397b
#173163
#0F1E3E
Base = 800Lightest = 50 · #F3F6FBDarkest = 950 · #0F1E3E
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E8EDF8;
  --brand-200: #CAD7F1;
  --brand-300: #A1BAED;
  --brand-400: #7298E3;
  --brand-500: #4376DA;
  --brand-600: #285FCD;
  --brand-700: #214FAB;
  --brand-800: #18397b;
  --brand-900: #173163;
  --brand-950: #0F1E3E;
  --brand: #18397b;
  --brand-ink: #ffffff;
}

Colors that work with #18397b

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#C0CFED
Hairlines and dividers
Muted text#4B659B
Captions on the surface
Accent#7E4115
Second voice, not a rival
Dark variant#15316B
Hover, pressed, headers
Light variant#EAEFFB
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 #18397b

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#7B5A18
Analogous left#186A7B
Analogous right#28187B
Split-complement 1#7B2818
Split-complement 2#6A7B18
Triadic 1#7B1839
Triadic 2#397B18
Tetradic#7B186A

RGB percentages

Red9.4%
Green22.4%
Blue48.2%

CMYK percentages

Cyan80.5%
Magenta53.7%
Yellow0.0%
Key (black)51.8%

Color previews

#18397b text on a black background

contrast 1.91:1

Card sample

#18397b text on a white background

contrast 10.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(24, 57, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(24, 57, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #18397b;
background: linear-gradient(135deg, #18397b, #39187B);

Monochromatic scale

Palettes built from #18397b

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.

#18397b 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.

#18397b, answered

What color is #18397b?

#18397b is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 8.5). It sits at 220° on the hue wheel with 67% saturation and 29% lightness, which reads as cool.

What is the RGB value of #18397b?

rgb(24, 57, 123) — 24 red, 57 green and 123 blue out of 255, or 9.4% / 22.4% / 48.2% by channel.

Is #18397b a light or a dark color?

It is a dark color. Relative luminance is 0.0455 and perceived brightness is 24%, so white text on it reaches 10.99:1.

Should I use black or white text on #18397b?

White. It scores 10.99:1 against #18397b, versus 1.91:1 for black — AAA at any size.

What is the complementary color of #18397b?

#7B5A18 sits directly opposite on the wheel. Softer options are the split-complements #7B2818 and #6A7B18, which give the same contrast with far less vibration.

What colors go well with #18397b?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B659B for secondary text, #7E4115 as an accent and #15316B for hover and pressed states. For a palette, the analogous pair #186A7B and #28187B stays calm, while #7B5A18 is the loudest partner.

What is #18397b in CMYK for printing?

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

Is #18397b 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 #1B187B; nudged cooler, #133667.

Work with #18397b in the Color Lab