#172138#172138

#172138 is a dark, muted blue. Relative luminance 0.016; OKLCH L 25.1% C 0.046 H 265.4°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#172138
RGBrgb(23, 33, 56)
HSLhsl(222, 42%, 15%)
HSVhsv(222, 59%, 22%)
CMYKcmyk(58.9%, 41.1%, 0%, 78%)
CIE-LABlab(12.96, 3.62, -16.32)
CIE-LCHlch(12.96, 16.72, 282.52°)
OKLaboklab(25.08% -0.0037 -0.046)
OKLCHoklch(25.08% 0.046 265.4)
XYZxyz(1.6108, 1.5553, 3.9559)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172138 #382E17
analogous
#173138 #172138 #1D1738
triadic
#172138 #381721 #213817
tetradic
#172138 #381731 #382E17 #17381D
square
#172138 #381731 #382E17 #17381D
split-complementary
#172138 #381D17 #313817
monochromatic
#090D16 #090D16 #172138 #293B63 #3B548F

Accessibility & contrast

On white

16.02
#172138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#172138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172138
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172138#FFFFFF#000000##FFFFFF
##1721381.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182339
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#082629
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #172138;
/* rgb */ color: rgb(23, 33, 56);
/* oklch */ color: oklch(25.1% 0.046 265.4);
Tailwind
colors: {
  custom: {
    50: '#565b6e',
    500: '#172138',
    950: '#000000',
  },
}
SCSS
$custom: #172138;
$custom-light: #565b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#172138",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 221.818,
    "s": 41.772,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25082,
    "c": 0.04616,
    "h": 265.4
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#172138
secondary
#6E5F3C
accent
#AC56D2
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030407
muted
#78797A

Preview Lab

Preview with #172138

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

Preview Lab → · Contrast checker → · Palette generator →

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