#172F55#172F55

#172F55 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.075 H 259.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#172F55
RGBrgb(23, 47, 85)
HSLhsl(217, 57%, 21%)
HSVhsv(217, 73%, 33%)
CMYKcmyk(72.9%, 44.7%, 0%, 66.7%)
CIE-LABlab(19.52, 5.07, -25.84)
CIE-LCHlch(19.52, 26.34, 281.11°)
OKLaboklab(30.77% -0.014 -0.0737)
OKLCHoklch(30.77% 0.075 259.2)
XYZxyz(3.0090, 2.8708, 8.9881)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F55 #553D17
analogous
#174E55 #172F55 #1E1755
triadic
#172F55 #55172F #2F5517
tetradic
#172F55 #55174E #553D17 #17551E
square
#172F55 #55174E #553D17 #17551E
split-complementary
#172F55 #551E17 #4E5517
monochromatic
#070D18 #0A1425 #172F55 #244A85 #3164B5

Accessibility & contrast

On white

13.34
#172F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F55
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F55#FFFFFF#000000##FFFFFF
##172F551.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3256
Deuteranopia (green-blind)
#142D54
Tritanopia (blue-blind)
#00383D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172f55;
/* rgb */ color: rgb(23, 47, 85);
/* oklch */ color: oklch(30.8% 0.075 259.2);
Tailwind
colors: {
  custom: {
    50: '#5c6785',
    500: '#172f55',
    950: '#000000',
  },
}
SCSS
$custom: #172f55;
$custom-light: #5c6785;
$custom-dark: #000000;
JSON
{
  "hex": "#172f55",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 85
  },
  "hsl": {
    "h": 216.774,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30769,
    "c": 0.07501,
    "h": 259.2
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#172F55
secondary
#8C6D3C
accent
#A547E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #172F55

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

Preview Lab → · Contrast checker → · Palette generator →

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