#172E57#172E57

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

Color values

HEX#172E57
RGBrgb(23, 46, 87)
HSLhsl(218, 58%, 22%)
HSVhsv(218, 74%, 34%)
CMYKcmyk(73.6%, 47.1%, 0%, 65.9%)
CIE-LABlab(19.32, 6.63, -27.49)
CIE-LCHlch(19.32, 28.27, 283.55°)
OKLaboklab(30.66% -0.0124 -0.0785)
OKLCHoklch(30.66% 0.08 261)
XYZxyz(3.0500, 2.8240, 9.3993)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E57 #574017
analogous
#174E57 #172E57 #201757
triadic
#172E57 #57172E #2E5717
tetradic
#172E57 #57174E #574017 #175720
square
#172E57 #57174E #574017 #175720
split-complementary
#172E57 #572017 #4E5717
monochromatic
#060D18 #0A1427 #172E57 #244887 #3161B8

Accessibility & contrast

On white

13.42
#172E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E57
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E57#FFFFFF#000000##FFFFFF
##172E571.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3259
Deuteranopia (green-blind)
#0F2C56
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e57;
/* rgb */ color: rgb(23, 46, 87);
/* oklch */ color: oklch(30.7% 0.080 261.0);
Tailwind
colors: {
  custom: {
    50: '#5d6687',
    500: '#172e57',
    950: '#000000',
  },
}
SCSS
$custom: #172e57;
$custom-light: #5d6687;
$custom-dark: #000000;
JSON
{
  "hex": "#172e57",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 218.438,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.07951,
    "h": 261
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#172E57
secondary
#8E703C
accent
#AA46E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #172E57

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

Preview Lab → · Contrast checker → · Palette generator →

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