#172F77#172F77

#172F77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.127 H 265.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#172F77
RGBrgb(23, 47, 119)
HSLhsl(225, 68%, 28%)
HSVhsv(225, 81%, 47%)
CMYKcmyk(80.7%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.11, 19.23, -43.82)
CIE-LCHlch(22.11, 47.86, 293.69°)
OKLaboklab(33.57% -0.0094 -0.1266)
OKLCHoklch(33.57% 0.127 265.7)
XYZxyz(4.6985, 3.5466, 17.8861)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F77 #775F17
analogous
#175F77 #172F77 #2F1777
triadic
#172F77 #77172F #2F7717
tetradic
#172F77 #77175F #775F17 #17772F
square
#172F77 #77175F #775F17 #17772F
split-complementary
#172F77 #772F17 #5F7717
monochromatic
#050A1A #0D1B44 #172F77 #2143AA #315BD7

Accessibility & contrast

On white

12.29
#172F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F77
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F77#FFFFFF#000000##FFFFFF
##172F771.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172f77;
/* rgb */ color: rgb(23, 47, 119);
/* oklch */ color: oklch(33.6% 0.127 265.7);
Tailwind
colors: {
  custom: {
    50: '#65679f',
    500: '#172f77',
    950: '#000000',
  },
}
SCSS
$custom: #172f77;
$custom-light: #65679f;
$custom-dark: #000000;
JSON
{
  "hex": "#172f77",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 225,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33568,
    "c": 0.12691,
    "h": 265.7
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#172F77
secondary
#AC913E
accent
#BF3DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F77

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

Preview Lab → · Contrast checker → · Palette generator →

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