#172F57#172F57

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

Color values

HEX#172F57
RGBrgb(23, 47, 87)
HSLhsl(218, 58%, 22%)
HSVhsv(218, 74%, 34%)
CMYKcmyk(73.6%, 46%, 0%, 65.9%)
CIE-LABlab(19.65, 5.90, -26.96)
CIE-LCHlch(19.65, 27.60, 282.35°)
OKLaboklab(30.91% -0.0135 -0.077)
OKLCHoklch(30.91% 0.078 260)
XYZxyz(3.0895, 2.9030, 9.4125)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F57 #573F17
analogous
#174F57 #172F57 #1F1757
triadic
#172F57 #57172F #2F5717
tetradic
#172F57 #57174F #573F17 #17571F
square
#172F57 #57174F #573F17 #17571F
split-complementary
#172F57 #571F17 #4F5717
monochromatic
#060D18 #0A1527 #172F57 #244987 #3163B8

Accessibility & contrast

On white

13.29
#172F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F57
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F57#FFFFFF#000000##FFFFFF
##172F571.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3359
Deuteranopia (green-blind)
#122D56
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f57;
/* rgb */ color: rgb(23, 47, 87);
/* oklch */ color: oklch(30.9% 0.078 260.0);
Tailwind
colors: {
  custom: {
    50: '#5d6787',
    500: '#172f57',
    950: '#000000',
  },
}
SCSS
$custom: #172f57;
$custom-light: #5d6787;
$custom-dark: #000000;
JSON
{
  "hex": "#172f57",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 87
  },
  "hsl": {
    "h": 217.5,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30914,
    "c": 0.07816,
    "h": 260
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#172F57
secondary
#8E6F3C
accent
#A746E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #172F57

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

Preview Lab → · Contrast checker → · Palette generator →

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