#172F63#172F63

#172F63 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.097 H 263.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#172F63
RGBrgb(23, 47, 99)
HSLhsl(221, 62%, 24%)
HSVhsv(221, 77%, 39%)
CMYKcmyk(76.8%, 52.5%, 0%, 61.2%)
CIE-LABlab(20.50, 10.91, -33.52)
CIE-LCHlch(20.50, 35.25, 288.03°)
OKLaboklab(31.84% -0.0113 -0.0962)
OKLCHoklch(31.84% 0.097 263.3)
XYZxyz(3.6212, 3.1157, 12.2125)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F63 #634B17
analogous
#175563 #172F63 #251763
triadic
#172F63 #63172F #2F6317
tetradic
#172F63 #631755 #634B17 #176325
square
#172F63 #631755 #634B17 #176325
split-complementary
#172F63 #632517 #556317
monochromatic
#060C19 #0B1731 #172F63 #234795 #2E5EC6

Accessibility & contrast

On white

12.94
#172F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F63
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F63#FFFFFF#000000##FFFFFF
##172F631.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113565
Deuteranopia (green-blind)
#002E62
Tritanopia (blue-blind)
#003B44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172f63;
/* rgb */ color: rgb(23, 47, 99);
/* oklch */ color: oklch(31.8% 0.097 263.3);
Tailwind
colors: {
  custom: {
    50: '#606790',
    500: '#172f63',
    950: '#000000',
  },
}
SCSS
$custom: #172f63;
$custom-light: #606790;
$custom-dark: #000000;
JSON
{
  "hex": "#172f63",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 99
  },
  "hsl": {
    "h": 221.053,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.09691,
    "h": 263.3
  },
  "luminance": 0.03116
}

Semantic roles & 50–950 ramp

primary
#172F63
secondary
#9A7C3C
accent
#B242E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F63

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

Preview Lab → · Contrast checker → · Palette generator →

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