#172A6A#172A6A

#172A6A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.114 H 266.9°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#172A6A
RGBrgb(23, 42, 106)
HSLhsl(226, 64%, 25%)
HSVhsv(226, 78%, 42%)
CMYKcmyk(78.3%, 60.4%, 0%, 58.4%)
CIE-LABlab(19.55, 17.47, -39.63)
CIE-LCHlch(19.55, 43.30, 293.79°)
OKLaboklab(31.3% -0.0061 -0.1143)
OKLCHoklch(31.3% 0.114 266.9)
XYZxyz(3.7819, 2.8783, 13.9891)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A6A #6A5717
analogous
#17536A #172A6A #2D176A
triadic
#172A6A #6A172A #2A6A17
tetradic
#172A6A #6A1753 #6A5717 #176A2D
square
#172A6A #6A1753 #6A5717 #176A2D
split-complementary
#172A6A #6A2D17 #536A17
monochromatic
#050A19 #0C1638 #172A6A #223E9C #2D52CF

Accessibility & contrast

On white

13.33
#172A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A6A
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A6A#FFFFFF#000000##FFFFFF
##172A6A1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172a6a;
/* rgb */ color: rgb(23, 42, 106);
/* oklch */ color: oklch(31.3% 0.114 266.9);
Tailwind
colors: {
  custom: {
    50: '#626395',
    500: '#172a6a',
    950: '#000000',
  },
}
SCSS
$custom: #172a6a;
$custom-light: #626395;
$custom-dark: #000000;
JSON
{
  "hex": "#172a6a",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 226.265,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31298,
    "c": 0.11447,
    "h": 266.9
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#172A6A
secondary
#A0893D
accent
#C140E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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