#172160#172160

#172160 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.112 H 270.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#172160
RGBrgb(23, 33, 96)
HSLhsl(232, 61%, 23%)
HSVhsv(232, 76%, 38%)
CMYKcmyk(76%, 65.6%, 0%, 62.4%)
CIE-LABlab(16.07, 19.90, -38.72)
CIE-LCHlch(16.07, 43.54, 297.20°)
OKLaboklab(28.43% 0.0011 -0.1118)
OKLCHoklch(28.43% 0.112 270.6)
XYZxyz(3.0078, 2.1141, 11.3136)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172160 #605617
analogous
#174560 #172160 #311760
triadic
#172160 #601721 #216017
tetradic
#172160 #601745 #605617 #176031
square
#172160 #601745 #605617 #176031
split-complementary
#172160 #603117 #456017
monochromatic
#060819 #0B102F #172160 #233291 #2F43C3

Accessibility & contrast

On white

14.76
#172160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#172160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172160
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172160#FFFFFF#000000##FFFFFF
##1721601.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #172160;
/* rgb */ color: rgb(23, 33, 96);
/* oklch */ color: oklch(28.4% 0.112 270.6);
Tailwind
colors: {
  custom: {
    50: '#605c8e',
    500: '#172160',
    950: '#000000',
  },
}
SCSS
$custom: #172160;
$custom-light: #605c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#172160",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 231.781,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28433,
    "c": 0.11179,
    "h": 270.6
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#172160
secondary
#978A3C
accent
#CE43E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #172160

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

Preview Lab → · Contrast checker → · Palette generator →

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