#172162#172162

#172162 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.115 H 270.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#172162
RGBrgb(23, 33, 98)
HSLhsl(232, 62%, 24%)
HSVhsv(232, 77%, 38%)
CMYKcmyk(76.5%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.26, 20.71, -39.74)
CIE-LCHlch(16.26, 44.81, 297.52°)
OKLaboklab(28.63% 0.0011 -0.1148)
OKLCHoklch(28.63% 0.115 270.5)
XYZxyz(3.1011, 2.1514, 11.8047)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172162 #625817
analogous
#174662 #172162 #321762
triadic
#172162 #621721 #216217
tetradic
#172162 #621746 #625817 #176232
square
#172162 #621746 #625817 #176232
split-complementary
#172162 #623217 #466217
monochromatic
#060819 #0B1030 #172162 #233294 #2E42C5

Accessibility & contrast

On white

14.68
#172162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#172162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172162
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172162#FFFFFF#000000##FFFFFF
##1721621.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #172162;
/* rgb */ color: rgb(23, 33, 98);
/* oklch */ color: oklch(28.6% 0.115 270.5);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#172162',
    950: '#000000',
  },
}
SCSS
$custom: #172162;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#172162",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 232,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28629,
    "c": 0.11477,
    "h": 270.5
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#172162
secondary
#998C3C
accent
#CF43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #172162

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

Preview Lab → · Contrast checker → · Palette generator →

#172162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva