#172C61#172C61

#172C61 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.0% C 0.098 H 264.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#172C61
RGBrgb(23, 44, 97)
HSLhsl(223, 62%, 24%)
HSVhsv(223, 76%, 38%)
CMYKcmyk(76.3%, 54.6%, 0%, 62%)
CIE-LABlab(19.42, 12.26, -33.96)
CIE-LCHlch(19.42, 36.10, 289.86°)
OKLaboklab(30.97% -0.0087 -0.0976)
OKLCHoklch(30.97% 0.098 264.9)
XYZxyz(3.4109, 2.8462, 11.6766)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C61 #614C17
analogous
#175161 #172C61 #271761
triadic
#172C61 #61172C #2C6117
tetradic
#172C61 #611751 #614C17 #176127
square
#172C61 #611751 #614C17 #176127
split-complementary
#172C61 #612717 #516117
monochromatic
#060B19 #0B1630 #172C61 #234292 #2E59C4

Accessibility & contrast

On white

13.38
#172C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172C61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C61
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C61#FFFFFF#000000##FFFFFF
##172C611.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3363
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172c61;
/* rgb */ color: rgb(23, 44, 97);
/* oklch */ color: oklch(31.0% 0.098 264.9);
Tailwind
colors: {
  custom: {
    50: '#5f648e',
    500: '#172c61',
    950: '#000000',
  },
}
SCSS
$custom: #172c61;
$custom-light: #5f648e;
$custom-dark: #000000;
JSON
{
  "hex": "#172c61",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 97
  },
  "hsl": {
    "h": 222.973,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30967,
    "c": 0.09798,
    "h": 264.9
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#172C61
secondary
#987E3C
accent
#B743E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C61

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

Preview Lab → · Contrast checker → · Palette generator →

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