#172A6D#172A6D

#172A6D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.119 H 267.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#172A6D
RGBrgb(23, 42, 109)
HSLhsl(227, 65%, 26%)
HSVhsv(227, 79%, 43%)
CMYKcmyk(78.9%, 61.5%, 0%, 57.3%)
CIE-LABlab(19.81, 18.70, -41.15)
CIE-LCHlch(19.81, 45.20, 294.44°)
OKLaboklab(31.57% -0.006 -0.1188)
OKLCHoklch(31.57% 0.119 267.1)
XYZxyz(3.9407, 2.9418, 14.8252)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A6D #6D5A17
analogous
#17556D #172A6D #2F176D
triadic
#172A6D #6D172A #2A6D17
tetradic
#172A6D #6D1755 #6D5A17 #176D2F
square
#172A6D #6D1755 #6D5A17 #176D2F
split-complementary
#172A6D #6D2F17 #556D17
monochromatic
#050A19 #0C173A #172A6D #223DA0 #2C51D2

Accessibility & contrast

On white

13.22
#172A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A6D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A6D#FFFFFF#000000##FFFFFF
##172A6D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172a6d;
/* rgb */ color: rgb(23, 42, 109);
/* oklch */ color: oklch(31.6% 0.119 267.1);
Tailwind
colors: {
  custom: {
    50: '#636397',
    500: '#172a6d',
    950: '#000000',
  },
}
SCSS
$custom: #172a6d;
$custom-light: #636397;
$custom-dark: #000000;
JSON
{
  "hex": "#172a6d",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 226.744,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31574,
    "c": 0.11894,
    "h": 267.1
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#172A6D
secondary
#A38C3D
accent
#C340E8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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