#172541#172541

#172541 is a dark, muted blue. Relative luminance 0.019; OKLCH L 26.8% C 0.056 H 263.0°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#172541
RGBrgb(23, 37, 65)
HSLhsl(220, 48%, 17%)
HSVhsv(220, 65%, 25%)
CMYKcmyk(64.6%, 43.1%, 0%, 74.5%)
CIE-LABlab(14.88, 4.20, -19.60)
CIE-LCHlch(14.88, 20.04, 282.11°)
OKLaboklab(26.76% -0.0068 -0.0555)
OKLCHoklch(26.76% 0.056 263)
XYZxyz(1.9687, 1.8868, 5.2604)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172541 #413317
analogous
#173A41 #172541 #1E1741
triadic
#172541 #411725 #254117
tetradic
#172541 #41173A #413317 #17411E
square
#172541 #41173A #413317 #17411E
split-complementary
#172541 #411E17 #3A4117
monochromatic
#080D17 #080D17 #172541 #273F6E #37589B

Accessibility & contrast

On white

15.25
#172541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#172541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172541
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172541#FFFFFF#000000##FFFFFF
##1725411.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192842
Deuteranopia (green-blind)
#142440
Tritanopia (blue-blind)
#002B2F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172541;
/* rgb */ color: rgb(23, 37, 65);
/* oklch */ color: oklch(26.8% 0.056 263.0);
Tailwind
colors: {
  custom: {
    50: '#585f76',
    500: '#172541',
    950: '#000000',
  },
}
SCSS
$custom: #172541;
$custom-light: #585f76;
$custom-dark: #000000;
JSON
{
  "hex": "#172541",
  "rgb": {
    "r": 23,
    "g": 37,
    "b": 65
  },
  "hsl": {
    "h": 220,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26757,
    "c": 0.05595,
    "h": 263
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#172541
secondary
#78643C
accent
#AA50D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #172541

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#172541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva