#172F58#172F58

#172F58 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.080 H 260.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#172F58
RGBrgb(23, 47, 88)
HSLhsl(218, 59%, 22%)
HSVhsv(218, 74%, 35%)
CMYKcmyk(73.9%, 46.6%, 0%, 65.5%)
CIE-LABlab(19.72, 6.32, -27.52)
CIE-LCHlch(19.72, 28.24, 282.93°)
OKLaboklab(30.99% -0.0133 -0.0786)
OKLCHoklch(30.99% 0.08 260.4)
XYZxyz(3.1307, 2.9195, 9.6291)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F58 #584017
analogous
#175058 #172F58 #201758
triadic
#172F58 #58172F #2F5817
tetradic
#172F58 #581750 #584017 #175820
square
#172F58 #581750 #584017 #175820
split-complementary
#172F58 #582017 #505817
monochromatic
#060D18 #0A1527 #172F58 #244989 #3063B9

Accessibility & contrast

On white

13.26
#172F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F58
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F58#FFFFFF#000000##FFFFFF
##172F581.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#102D57
Tritanopia (blue-blind)
#00383F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f58;
/* rgb */ color: rgb(23, 47, 88);
/* oklch */ color: oklch(31.0% 0.080 260.4);
Tailwind
colors: {
  custom: {
    50: '#5d6787',
    500: '#172f58',
    950: '#000000',
  },
}
SCSS
$custom: #172f58;
$custom-light: #5d6787;
$custom-dark: #000000;
JSON
{
  "hex": "#172f58",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 217.846,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30988,
    "c": 0.07974,
    "h": 260.4
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#172F58
secondary
#8F703C
accent
#A846E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05060B
muted
#797A7C

Preview Lab

Preview with #172F58

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

Preview Lab → · Contrast checker → · Palette generator →

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