#172C60#172C60

#172C60 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.9% C 0.096 H 264.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#172C60
RGBrgb(23, 44, 96)
HSLhsl(223, 61%, 23%)
HSVhsv(223, 76%, 38%)
CMYKcmyk(76%, 54.2%, 0%, 62.4%)
CIE-LABlab(19.34, 11.84, -33.42)
CIE-LCHlch(19.34, 35.46, 289.51°)
OKLaboklab(30.88% -0.0088 -0.096)
OKLCHoklch(30.88% 0.096 264.8)
XYZxyz(3.3646, 2.8277, 11.4325)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C60 #604B17
analogous
#175060 #172C60 #261760
triadic
#172C60 #60172C #2C6017
tetradic
#172C60 #601750 #604B17 #176026
square
#172C60 #601750 #604B17 #176026
split-complementary
#172C60 #602617 #506017
monochromatic
#060B19 #0B152F #172C60 #234391 #2F59C3

Accessibility & contrast

On white

13.41
#172C60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172C60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C60
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C60#FFFFFF#000000##FFFFFF
##172C601.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3262
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172c60;
/* rgb */ color: rgb(23, 44, 96);
/* oklch */ color: oklch(30.9% 0.096 264.8);
Tailwind
colors: {
  custom: {
    50: '#5f648e',
    500: '#172c60',
    950: '#000000',
  },
}
SCSS
$custom: #172c60;
$custom-light: #5f648e;
$custom-dark: #000000;
JSON
{
  "hex": "#172c60",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 96
  },
  "hsl": {
    "h": 222.74,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30883,
    "c": 0.09643,
    "h": 264.8
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#172C60
secondary
#977D3C
accent
#B643E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C60

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

Preview Lab → · Contrast checker → · Palette generator →

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