#172845#172845

#172845 is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.8% C 0.059 H 260.5°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#172845
RGBrgb(23, 40, 69)
HSLhsl(218, 50%, 18%)
HSVhsv(218, 67%, 27%)
CMYKcmyk(66.7%, 42%, 0%, 72.9%)
CIE-LABlab(16.15, 3.61, -20.36)
CIE-LCHlch(16.15, 20.67, 280.05°)
OKLaboklab(27.82% -0.0097 -0.0577)
OKLCHoklch(27.82% 0.059 260.5)
XYZxyz(2.1859, 2.1292, 5.9249)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172845 #453417
analogous
#173F45 #172845 #1D1745
triadic
#172845 #451728 #284517
tetradic
#172845 #45173F #453417 #17451D
square
#172845 #45173F #453417 #17451D
split-complementary
#172845 #451D17 #3F4517
monochromatic
#080D17 #080D17 #172845 #264373 #365DA1

Accessibility & contrast

On white

14.73
#172845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#172845 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172845
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172845#FFFFFF#000000##FFFFFF
##1728451.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2A46
Deuteranopia (green-blind)
#162644
Tritanopia (blue-blind)
#002E33
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #172845;
/* rgb */ color: rgb(23, 40, 69);
/* oklch */ color: oklch(27.8% 0.059 260.5);
Tailwind
colors: {
  custom: {
    50: '#596179',
    500: '#172845',
    950: '#000000',
  },
}
SCSS
$custom: #172845;
$custom-light: #596179;
$custom-dark: #000000;
JSON
{
  "hex": "#172845",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 69
  },
  "hsl": {
    "h": 217.826,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27823,
    "c": 0.05851,
    "h": 260.5
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#172845
secondary
#7C643C
accent
#A64EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040509
muted
#79797B

Preview Lab

Preview with #172845

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

Preview Lab → · Contrast checker → · Palette generator →

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