#172B62#172B62

#172B62 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.101 H 265.7°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#172B62
RGBrgb(23, 43, 98)
HSLhsl(224, 62%, 24%)
HSVhsv(224, 77%, 38%)
CMYKcmyk(76.5%, 56.1%, 0%, 61.6%)
CIE-LABlab(19.19, 13.41, -34.98)
CIE-LCHlch(19.19, 37.47, 290.98°)
OKLaboklab(30.82% -0.0076 -0.1006)
OKLCHoklch(30.82% 0.101 265.7)
XYZxyz(3.4211, 2.7914, 11.9114)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B62 #624E17
analogous
#175062 #172B62 #281762
triadic
#172B62 #62172B #2B6217
tetradic
#172B62 #621750 #624E17 #176228
square
#172B62 #621750 #624E17 #176228
split-complementary
#172B62 #622817 #506217
monochromatic
#060B19 #0B1530 #172B62 #234194 #2E56C5

Accessibility & contrast

On white

13.48
#172B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B62
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B62#FFFFFF#000000##FFFFFF
##172B621.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063264
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172b62;
/* rgb */ color: rgb(23, 43, 98);
/* oklch */ color: oklch(30.8% 0.101 265.7);
Tailwind
colors: {
  custom: {
    50: '#60638f',
    500: '#172b62',
    950: '#000000',
  },
}
SCSS
$custom: #172b62;
$custom-light: #60638f;
$custom-dark: #000000;
JSON
{
  "hex": "#172b62",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 98
  },
  "hsl": {
    "h": 224,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30818,
    "c": 0.10093,
    "h": 265.7
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#172B62
secondary
#99803C
accent
#BA43E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B62

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

Preview Lab → · Contrast checker → · Palette generator →

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