#172A69#172A69

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

Color values

HEX#172A69
RGBrgb(23, 42, 105)
HSLhsl(226, 64%, 25%)
HSVhsv(226, 78%, 41%)
CMYKcmyk(78.1%, 60%, 0%, 58.8%)
CIE-LABlab(19.46, 17.05, -39.11)
CIE-LCHlch(19.46, 42.67, 293.56°)
OKLaboklab(31.21% -0.0062 -0.1128)
OKLCHoklch(31.21% 0.113 266.9)
XYZxyz(3.7302, 2.8576, 13.7168)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A69 #695617
analogous
#175369 #172A69 #2D1769
triadic
#172A69 #69172A #2A6917
tetradic
#172A69 #691753 #695617 #17692D
square
#172A69 #691753 #695617 #17692D
split-complementary
#172A69 #692D17 #536917
monochromatic
#050A19 #0C1637 #172A69 #223E9B #2D52CD

Accessibility & contrast

On white

13.36
#172A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A69
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A69#FFFFFF#000000##FFFFFF
##172A691.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a69;
/* rgb */ color: rgb(23, 42, 105);
/* oklch */ color: oklch(31.2% 0.113 266.9);
Tailwind
colors: {
  custom: {
    50: '#626394',
    500: '#172a69',
    950: '#000000',
  },
}
SCSS
$custom: #172a69;
$custom-light: #626394;
$custom-dark: #000000;
JSON
{
  "hex": "#172a69",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 105
  },
  "hsl": {
    "h": 226.098,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.11298,
    "h": 266.9
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#172A69
secondary
#9F883D
accent
#C141E7
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172A69

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

Preview Lab → · Contrast checker → · Palette generator →

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