#172E62#172E62

#172E62 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.097 H 263.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#172E62
RGBrgb(23, 46, 98)
HSLhsl(222, 62%, 24%)
HSVhsv(222, 77%, 38%)
CMYKcmyk(76.5%, 53.1%, 0%, 61.6%)
CIE-LABlab(20.11, 11.22, -33.49)
CIE-LCHlch(20.11, 35.32, 288.53°)
OKLaboklab(31.52% -0.0105 -0.0962)
OKLCHoklch(31.52% 0.097 263.8)
XYZxyz(3.5342, 3.0176, 11.9491)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E62 #624B17
analogous
#175362 #172E62 #251762
triadic
#172E62 #62172E #2E6217
tetradic
#172E62 #621753 #624B17 #176225
square
#172E62 #621753 #624B17 #176225
split-complementary
#172E62 #622517 #536217
monochromatic
#060C19 #0B1730 #172E62 #234594 #2E5DC5

Accessibility & contrast

On white

13.10
#172E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E62
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E62#FFFFFF#000000##FFFFFF
##172E621.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103464
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172e62;
/* rgb */ color: rgb(23, 46, 98);
/* oklch */ color: oklch(31.5% 0.097 263.8);
Tailwind
colors: {
  custom: {
    50: '#5f668f',
    500: '#172e62',
    950: '#000000',
  },
}
SCSS
$custom: #172e62;
$custom-light: #5f668f;
$custom-dark: #000000;
JSON
{
  "hex": "#172e62",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 98
  },
  "hsl": {
    "h": 221.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.09675,
    "h": 263.8
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#172E62
secondary
#997C3C
accent
#B343E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172E62

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

Preview Lab → · Contrast checker → · Palette generator →

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