#172C62#172C62

#172C62 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.100 H 265.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#172C62
RGBrgb(23, 44, 98)
HSLhsl(223, 62%, 24%)
HSVhsv(223, 77%, 38%)
CMYKcmyk(76.5%, 55.1%, 0%, 61.6%)
CIE-LABlab(19.49, 12.68, -34.49)
CIE-LCHlch(19.49, 36.75, 290.19°)
OKLaboklab(31.05% -0.0085 -0.0992)
OKLCHoklch(31.05% 0.1 265.1)
XYZxyz(3.4579, 2.8650, 11.9237)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C62 #624D17
analogous
#175162 #172C62 #271762
triadic
#172C62 #62172C #2C6217
tetradic
#172C62 #621751 #624D17 #176227
square
#172C62 #621751 #624D17 #176227
split-complementary
#172C62 #622717 #516217
monochromatic
#060B19 #0B1630 #172C62 #234294 #2E59C5

Accessibility & contrast

On white

13.35
#172C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C62
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C62#FFFFFF#000000##FFFFFF
##172C621.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093364
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172c62;
/* rgb */ color: rgb(23, 44, 98);
/* oklch */ color: oklch(31.1% 0.100 265.1);
Tailwind
colors: {
  custom: {
    50: '#60648f',
    500: '#172c62',
    950: '#000000',
  },
}
SCSS
$custom: #172c62;
$custom-light: #60648f;
$custom-dark: #000000;
JSON
{
  "hex": "#172c62",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 98
  },
  "hsl": {
    "h": 223.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3105,
    "c": 0.09953,
    "h": 265.1
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#172C62
secondary
#997F3C
accent
#B843E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C62

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

Preview Lab → · Contrast checker → · Palette generator →

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