#172E61#172E61

#172E61 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.095 H 263.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#172E61
RGBrgb(23, 46, 97)
HSLhsl(221, 62%, 24%)
HSVhsv(221, 76%, 38%)
CMYKcmyk(76.3%, 52.6%, 0%, 62%)
CIE-LABlab(20.04, 10.80, -32.95)
CIE-LCHlch(20.04, 34.68, 288.15°)
OKLaboklab(31.44% -0.0106 -0.0946)
OKLCHoklch(31.44% 0.095 263.6)
XYZxyz(3.4872, 2.9988, 11.7020)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E61 #614A17
analogous
#175361 #172E61 #251761
triadic
#172E61 #61172E #2E6117
tetradic
#172E61 #611753 #614A17 #176125
square
#172E61 #611753 #614A17 #176125
split-complementary
#172E61 #612517 #536117
monochromatic
#060C19 #0B1730 #172E61 #234592 #2E5DC4

Accessibility & contrast

On white

13.13
#172E61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172E61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E61
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E61#FFFFFF#000000##FFFFFF
##172E611.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113463
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172e61;
/* rgb */ color: rgb(23, 46, 97);
/* oklch */ color: oklch(31.4% 0.095 263.6);
Tailwind
colors: {
  custom: {
    50: '#5f668e',
    500: '#172e61',
    950: '#000000',
  },
}
SCSS
$custom: #172e61;
$custom-light: #5f668e;
$custom-dark: #000000;
JSON
{
  "hex": "#172e61",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 97
  },
  "hsl": {
    "h": 221.351,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.0952,
    "h": 263.6
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#172E61
secondary
#987B3C
accent
#B243E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172E61

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

Preview Lab → · Contrast checker → · Palette generator →

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