#172D61#172D61

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

Color values

HEX#172D61
RGBrgb(23, 45, 97)
HSLhsl(222, 62%, 24%)
HSVhsv(222, 76%, 38%)
CMYKcmyk(76.3%, 53.6%, 0%, 62%)
CIE-LABlab(19.73, 11.53, -33.46)
CIE-LCHlch(19.73, 35.39, 289.02°)
OKLaboklab(31.2% -0.0096 -0.0961)
OKLCHoklch(31.2% 0.097 264.3)
XYZxyz(3.4486, 2.9216, 11.6891)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D61 #614B17
analogous
#175261 #172D61 #261761
triadic
#172D61 #61172D #2D6117
tetradic
#172D61 #611752 #614B17 #176126
square
#172D61 #611752 #614B17 #176126
split-complementary
#172D61 #612617 #526117
monochromatic
#060B19 #0B1630 #172D61 #234492 #2E5BC4

Accessibility & contrast

On white

13.25
#172D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D61
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D61#FFFFFF#000000##FFFFFF
##172D611.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3363
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172d61;
/* rgb */ color: rgb(23, 45, 97);
/* oklch */ color: oklch(31.2% 0.097 264.3);
Tailwind
colors: {
  custom: {
    50: '#5f658e',
    500: '#172d61',
    950: '#000000',
  },
}
SCSS
$custom: #172d61;
$custom-light: #5f658e;
$custom-dark: #000000;
JSON
{
  "hex": "#172d61",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 97
  },
  "hsl": {
    "h": 222.162,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.09658,
    "h": 264.3
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#172D61
secondary
#987C3C
accent
#B543E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D61

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

Preview Lab → · Contrast checker → · Palette generator →

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