#172E55#172E55

#172E55 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.5% C 0.076 H 260.3°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#172E55
RGBrgb(23, 46, 85)
HSLhsl(218, 57%, 21%)
HSVhsv(218, 73%, 33%)
CMYKcmyk(72.9%, 45.9%, 0%, 66.7%)
CIE-LABlab(19.19, 5.80, -26.37)
CIE-LCHlch(19.19, 27.00, 282.40°)
OKLaboklab(30.51% -0.0129 -0.0752)
OKLCHoklch(30.51% 0.076 260.3)
XYZxyz(2.9695, 2.7917, 8.9749)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E55 #553E17
analogous
#174D55 #172E55 #1F1755
triadic
#172E55 #55172E #2E5517
tetradic
#172E55 #55174D #553E17 #17551F
square
#172E55 #55174D #553E17 #17551F
split-complementary
#172E55 #551F17 #4D5517
monochromatic
#070D18 #0A1425 #172E55 #244885 #3162B5

Accessibility & contrast

On white

13.48
#172E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E55
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E55#FFFFFF#000000##FFFFFF
##172E551.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3257
Deuteranopia (green-blind)
#122C54
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e55;
/* rgb */ color: rgb(23, 46, 85);
/* oklch */ color: oklch(30.5% 0.076 260.3);
Tailwind
colors: {
  custom: {
    50: '#5c6685',
    500: '#172e55',
    950: '#000000',
  },
}
SCSS
$custom: #172e55;
$custom-light: #5c6685;
$custom-dark: #000000;
JSON
{
  "hex": "#172e55",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 85
  },
  "hsl": {
    "h": 217.742,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30514,
    "c": 0.07634,
    "h": 260.3
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#172E55
secondary
#8C6E3C
accent
#A847E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #172E55

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

Preview Lab → · Contrast checker → · Palette generator →

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