#172C5E#172C5E

#172C5E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.093 H 264.4°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#172C5E
RGBrgb(23, 44, 94)
HSLhsl(222, 61%, 23%)
HSVhsv(222, 76%, 37%)
CMYKcmyk(75.5%, 53.2%, 0%, 63.1%)
CIE-LABlab(19.19, 11.01, -32.35)
CIE-LCHlch(19.19, 34.17, 288.79°)
OKLaboklab(30.72% -0.0091 -0.0929)
OKLCHoklch(30.72% 0.093 264.4)
XYZxyz(3.2737, 2.7913, 10.9538)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C5E #5E4917
analogous
#174F5E #172C5E #26175E
triadic
#172C5E #5E172C #2C5E17
tetradic
#172C5E #5E174F #5E4917 #175E26
square
#172C5E #5E174F #5E4917 #175E26
split-complementary
#172C5E #5E2617 #4F5E17
monochromatic
#060C19 #0B152D #172C5E #23438F #2F5AC0

Accessibility & contrast

On white

13.48
#172C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172C5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C5E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C5E#FFFFFF#000000##FFFFFF
##172C5E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3260
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172c5e;
/* rgb */ color: rgb(23, 44, 94);
/* oklch */ color: oklch(30.7% 0.093 264.4);
Tailwind
colors: {
  custom: {
    50: '#5e648c',
    500: '#172c5e',
    950: '#000000',
  },
}
SCSS
$custom: #172c5e;
$custom-light: #5e648c;
$custom-dark: #000000;
JSON
{
  "hex": "#172c5e",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 94
  },
  "hsl": {
    "h": 222.254,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30719,
    "c": 0.09331,
    "h": 264.4
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#172C5E
secondary
#957B3C
accent
#B544E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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