#172F5F#172F5F

#172F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.091 H 262.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#172F5F
RGBrgb(23, 47, 95)
HSLhsl(220, 61%, 23%)
HSVhsv(220, 76%, 37%)
CMYKcmyk(75.8%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.21, 9.24, -31.37)
CIE-LCHlch(20.21, 32.70, 286.41°)
OKLaboklab(31.52% -0.0119 -0.0899)
OKLCHoklch(31.52% 0.091 262.4)
XYZxyz(3.4347, 3.0411, 11.2302)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F5F #5F4717
analogous
#17535F #172F5F #23175F
triadic
#172F5F #5F172F #2F5F17
tetradic
#172F5F #5F1753 #5F4717 #175F23
square
#172F5F #5F1753 #5F4717 #175F23
split-complementary
#172F5F #5F2317 #535F17
monochromatic
#060C19 #0B172E #172F5F #234790 #2F60C2

Accessibility & contrast

On white

13.06
#172F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F5F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F5F#FFFFFF#000000##FFFFFF
##172F5F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163461
Deuteranopia (green-blind)
#052E5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172f5f;
/* rgb */ color: rgb(23, 47, 95);
/* oklch */ color: oklch(31.5% 0.091 262.4);
Tailwind
colors: {
  custom: {
    50: '#5f678d',
    500: '#172f5f',
    950: '#000000',
  },
}
SCSS
$custom: #172f5f;
$custom-light: #5f678d;
$custom-dark: #000000;
JSON
{
  "hex": "#172f5f",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 220,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.09071,
    "h": 262.4
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#172F5F
secondary
#96783C
accent
#AF44E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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