#172E5A#172E5A

#172E5A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.084 H 261.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#172E5A
RGBrgb(23, 46, 90)
HSLhsl(219, 59%, 22%)
HSVhsv(219, 74%, 35%)
CMYKcmyk(74.4%, 48.9%, 0%, 64.7%)
CIE-LABlab(19.53, 7.88, -29.15)
CIE-LCHlch(19.53, 30.19, 285.12°)
OKLaboklab(30.89% -0.0118 -0.0834)
OKLCHoklch(30.89% 0.084 261.9)
XYZxyz(3.1752, 2.8740, 10.0583)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E5A #5A4317
analogous
#17505A #172E5A #22175A
triadic
#172E5A #5A172E #2E5A17
tetradic
#172E5A #5A1750 #5A4317 #175A22
square
#172E5A #5A1750 #5A4317 #175A22
split-complementary
#172E5A #5A2217 #505A17
monochromatic
#060C18 #0B1529 #172E5A #23478B #3060BB

Accessibility & contrast

On white

13.34
#172E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E5A
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E5A#FFFFFF#000000##FFFFFF
##172E5A1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335C
Deuteranopia (green-blind)
#0B2C59
Tritanopia (blue-blind)
#00383F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e5a;
/* rgb */ color: rgb(23, 46, 90);
/* oklch */ color: oklch(30.9% 0.084 261.9);
Tailwind
colors: {
  custom: {
    50: '#5d6689',
    500: '#172e5a',
    950: '#000000',
  },
}
SCSS
$custom: #172e5a;
$custom-light: #5d6689;
$custom-dark: #000000;
JSON
{
  "hex": "#172e5a",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 90
  },
  "hsl": {
    "h": 219.403,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30889,
    "c": 0.08424,
    "h": 261.9
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#172E5A
secondary
#91743C
accent
#AD45E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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