#172140#172140

#172140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.060 H 268.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#172140
RGBrgb(23, 33, 64)
HSLhsl(225, 47%, 17%)
HSVhsv(225, 64%, 25%)
CMYKcmyk(64.1%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.47, 6.79, -21.14)
CIE-LCHlch(13.47, 22.20, 287.81°)
OKLaboklab(25.65% -0.0016 -0.0601)
OKLCHoklch(25.65% 0.06 268.5)
XYZxyz(1.8223, 1.6399, 5.0700)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172140 #403617
analogous
#173640 #172140 #221740
triadic
#172140 #401721 #214017
tetradic
#172140 #401736 #403617 #174022
square
#172140 #401736 #403617 #174022
split-complementary
#172140 #402217 #364017
monochromatic
#080C17 #080C17 #172140 #27386D #374F9A

Accessibility & contrast

On white

15.81
#172140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#172140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172140
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172140#FFFFFF#000000##FFFFFF
##1721401.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142441
Deuteranopia (green-blind)
#0E213F
Tritanopia (blue-blind)
#01282D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #172140;
/* rgb */ color: rgb(23, 33, 64);
/* oklch */ color: oklch(25.6% 0.060 268.5);
Tailwind
colors: {
  custom: {
    50: '#585b75',
    500: '#172140',
    950: '#000000',
  },
}
SCSS
$custom: #172140;
$custom-light: #585b75;
$custom-dark: #000000;
JSON
{
  "hex": "#172140",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 225.366,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.06012,
    "h": 268.5
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#172140
secondary
#77693C
accent
#B651D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #172140

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

Preview Lab → · Contrast checker → · Palette generator →

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