#172F61#172F61

#172F61 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.094 H 262.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172F61
RGBrgb(23, 47, 97)
HSLhsl(221, 62%, 24%)
HSVhsv(221, 76%, 38%)
CMYKcmyk(76.3%, 51.5%, 0%, 62%)
CIE-LABlab(20.35, 10.07, -32.45)
CIE-LCHlch(20.35, 33.97, 287.25°)
OKLaboklab(31.68% -0.0116 -0.0931)
OKLCHoklch(31.68% 0.094 262.9)
XYZxyz(3.5268, 3.0779, 11.7152)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F61 #614917
analogous
#175461 #172F61 #241761
triadic
#172F61 #61172F #2F6117
tetradic
#172F61 #611754 #614917 #176124
square
#172F61 #611754 #614917 #176124
split-complementary
#172F61 #612417 #546117
monochromatic
#060C19 #0B1730 #172F61 #234792 #2E5FC4

Accessibility & contrast

On white

13.00
#172F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F61
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F61#FFFFFF#000000##FFFFFF
##172F611.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133563
Deuteranopia (green-blind)
#012E60
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172f61;
/* rgb */ color: rgb(23, 47, 97);
/* oklch */ color: oklch(31.7% 0.094 262.9);
Tailwind
colors: {
  custom: {
    50: '#5f678e',
    500: '#172f61',
    950: '#000000',
  },
}
SCSS
$custom: #172f61;
$custom-light: #5f678e;
$custom-dark: #000000;
JSON
{
  "hex": "#172f61",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 97
  },
  "hsl": {
    "h": 220.541,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.09382,
    "h": 262.9
  },
  "luminance": 0.03078
}

Semantic roles & 50–950 ramp

primary
#172F61
secondary
#987A3C
accent
#B043E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F61

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

Preview Lab → · Contrast checker → · Palette generator →

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