#172E58#172E58

#172E58 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.081 H 261.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#172E58
RGBrgb(23, 46, 88)
HSLhsl(219, 59%, 22%)
HSVhsv(219, 74%, 35%)
CMYKcmyk(73.9%, 47.7%, 0%, 65.5%)
CIE-LABlab(19.39, 7.04, -28.04)
CIE-LCHlch(19.39, 28.91, 284.10°)
OKLaboklab(30.74% -0.0122 -0.0802)
OKLCHoklch(30.74% 0.081 261.3)
XYZxyz(3.0912, 2.8404, 9.6160)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E58 #584117
analogous
#174F58 #172E58 #211758
triadic
#172E58 #58172E #2E5817
tetradic
#172E58 #58174F #584117 #175821
square
#172E58 #58174F #584117 #175821
split-complementary
#172E58 #582117 #4F5817
monochromatic
#060D18 #0A1527 #172E58 #244789 #3061B9

Accessibility & contrast

On white

13.39
#172E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E58
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E58#FFFFFF#000000##FFFFFF
##172E581.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A325A
Deuteranopia (green-blind)
#0E2C57
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e58;
/* rgb */ color: rgb(23, 46, 88);
/* oklch */ color: oklch(30.7% 0.081 261.3);
Tailwind
colors: {
  custom: {
    50: '#5d6687',
    500: '#172e58',
    950: '#000000',
  },
}
SCSS
$custom: #172e58;
$custom-light: #5d6687;
$custom-dark: #000000;
JSON
{
  "hex": "#172e58",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 88
  },
  "hsl": {
    "h": 218.769,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30737,
    "c": 0.08108,
    "h": 261.3
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#172E58
secondary
#8F723C
accent
#AB46E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172E58

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

Preview Lab → · Contrast checker → · Palette generator →

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