#172E5F#172E5F

#172E5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.092 H 263.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#172E5F
RGBrgb(23, 46, 95)
HSLhsl(221, 61%, 23%)
HSVhsv(221, 76%, 37%)
CMYKcmyk(75.8%, 51.6%, 0%, 62.7%)
CIE-LABlab(19.89, 9.97, -31.88)
CIE-LCHlch(19.89, 33.40, 287.36°)
OKLaboklab(31.28% -0.0109 -0.0914)
OKLCHoklch(31.28% 0.092 263.2)
XYZxyz(3.3952, 2.9620, 11.2170)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E5F #5F4817
analogous
#17525F #172E5F #24175F
triadic
#172E5F #5F172E #2E5F17
tetradic
#172E5F #5F1752 #5F4817 #175F24
square
#172E5F #5F1752 #5F4817 #175F24
split-complementary
#172E5F #5F2417 #525F17
monochromatic
#060C19 #0B162E #172E5F #234690 #2F5EC2

Accessibility & contrast

On white

13.19
#172E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E5F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E5F#FFFFFF#000000##FFFFFF
##172E5F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133461
Deuteranopia (green-blind)
#022D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172e5f;
/* rgb */ color: rgb(23, 46, 95);
/* oklch */ color: oklch(31.3% 0.092 263.2);
Tailwind
colors: {
  custom: {
    50: '#5f668d',
    500: '#172e5f',
    950: '#000000',
  },
}
SCSS
$custom: #172e5f;
$custom-light: #5f668d;
$custom-dark: #000000;
JSON
{
  "hex": "#172e5f",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 220.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3128,
    "c": 0.09209,
    "h": 263.2
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#172E5F
secondary
#96793C
accent
#B144E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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