#172F5E#172F5E

#172F5E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.089 H 262.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#172F5E
RGBrgb(23, 47, 94)
HSLhsl(220, 61%, 23%)
HSVhsv(220, 76%, 37%)
CMYKcmyk(75.5%, 50%, 0%, 63.1%)
CIE-LABlab(20.14, 8.82, -30.82)
CIE-LCHlch(20.14, 32.06, 285.97°)
OKLaboklab(31.44% -0.0121 -0.0883)
OKLCHoklch(31.44% 0.089 262.2)
XYZxyz(3.3895, 3.0230, 10.9924)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F5E #5E4617
analogous
#17525E #172F5E #22175E
triadic
#172F5E #5E172F #2F5E17
tetradic
#172F5E #5E1752 #5E4617 #175E22
square
#172F5E #5E1752 #5E4617 #175E22
split-complementary
#172F5E #5E2217 #525E17
monochromatic
#060C19 #0B162D #172F5E #23488F #2F60C0

Accessibility & contrast

On white

13.09
#172F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F5E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F5E#FFFFFF#000000##FFFFFF
##172F5E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173460
Deuteranopia (green-blind)
#072E5D
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172f5e;
/* rgb */ color: rgb(23, 47, 94);
/* oklch */ color: oklch(31.4% 0.089 262.2);
Tailwind
colors: {
  custom: {
    50: '#5e678c',
    500: '#172f5e',
    950: '#000000',
  },
}
SCSS
$custom: #172f5e;
$custom-light: #5e678c;
$custom-dark: #000000;
JSON
{
  "hex": "#172f5e",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 219.718,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31444,
    "c": 0.08915,
    "h": 262.2
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#172F5E
secondary
#95773C
accent
#AE44E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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