#172C6A#172C6A

#172C6A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.7% C 0.112 H 266.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#172C6A
RGBrgb(23, 44, 106)
HSLhsl(225, 64%, 25%)
HSVhsv(225, 78%, 42%)
CMYKcmyk(78.3%, 58.5%, 0%, 58.4%)
CIE-LABlab(20.14, 16.01, -38.67)
CIE-LCHlch(20.14, 41.85, 292.50°)
OKLaboklab(31.74% -0.0078 -0.1115)
OKLCHoklch(31.74% 0.112 266)
XYZxyz(3.8546, 3.0237, 14.0134)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C6A #6A5517
analogous
#17556A #172C6A #2B176A
triadic
#172C6A #6A172C #2C6A17
tetradic
#172C6A #6A1755 #6A5517 #176A2B
square
#172C6A #6A1755 #6A5517 #176A2B
split-complementary
#172C6A #6A2B17 #556A17
monochromatic
#050A19 #0C1738 #172C6A #22419C #2D56CF

Accessibility & contrast

On white

13.09
#172C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C6A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C6A#FFFFFF#000000##FFFFFF
##172C6A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#003B46
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172c6a;
/* rgb */ color: rgb(23, 44, 106);
/* oklch */ color: oklch(31.7% 0.112 266.0);
Tailwind
colors: {
  custom: {
    50: '#626495',
    500: '#172c6a',
    950: '#000000',
  },
}
SCSS
$custom: #172c6a;
$custom-light: #626495;
$custom-dark: #000000;
JSON
{
  "hex": "#172c6a",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 106
  },
  "hsl": {
    "h": 224.819,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31741,
    "c": 0.11173,
    "h": 266
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#172C6A
secondary
#A0873D
accent
#BD40E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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