#172A60#172A60

#172A60 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.099 H 266.0°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#172A60
RGBrgb(23, 42, 96)
HSLhsl(224, 61%, 23%)
HSVhsv(224, 76%, 38%)
CMYKcmyk(76%, 56.3%, 0%, 62.4%)
CIE-LABlab(18.72, 13.31, -34.42)
CIE-LCHlch(18.72, 36.90, 291.14°)
OKLaboklab(30.42% -0.0069 -0.099)
OKLCHoklch(30.42% 0.099 266)
XYZxyz(3.2919, 2.6823, 11.4083)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A60 #604D17
analogous
#174E60 #172A60 #281760
triadic
#172A60 #60172A #2A6017
tetradic
#172A60 #60174E #604D17 #176028
square
#172A60 #60174E #604D17 #176028
split-complementary
#172A60 #602817 #4E6017
monochromatic
#060B19 #0B142F #172A60 #234091 #2F55C3

Accessibility & contrast

On white

13.67
#172A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A60
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A60#FFFFFF#000000##FFFFFF
##172A601.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063162
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172a60;
/* rgb */ color: rgb(23, 42, 96);
/* oklch */ color: oklch(30.4% 0.099 266.0);
Tailwind
colors: {
  custom: {
    50: '#5f638e',
    500: '#172a60',
    950: '#000000',
  },
}
SCSS
$custom: #172a60;
$custom-light: #5f638e;
$custom-dark: #000000;
JSON
{
  "hex": "#172a60",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 96
  },
  "hsl": {
    "h": 224.384,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30415,
    "c": 0.09923,
    "h": 266
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#172A60
secondary
#977F3C
accent
#BB43E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172A60

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

Preview Lab → · Contrast checker → · Palette generator →

#172A60 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva