#172161#172161

#172161 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.113 H 270.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#172161
RGBrgb(23, 33, 97)
HSLhsl(232, 62%, 24%)
HSVhsv(232, 76%, 38%)
CMYKcmyk(76.3%, 66%, 0%, 62%)
CIE-LABlab(16.17, 20.30, -39.23)
CIE-LCHlch(16.17, 44.18, 297.36°)
OKLaboklab(28.53% 0.0011 -0.1133)
OKLCHoklch(28.53% 0.113 270.5)
XYZxyz(3.0541, 2.1326, 11.5576)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172161 #615717
analogous
#174661 #172161 #321761
triadic
#172161 #611721 #216117
tetradic
#172161 #611746 #615717 #176132
square
#172161 #611746 #615717 #176132
split-complementary
#172161 #613217 #466117
monochromatic
#060819 #0B1030 #172161 #233292 #2E43C4

Accessibility & contrast

On white

14.72
#172161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172161
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172161#FFFFFF#000000##FFFFFF
##1721611.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #172161;
/* rgb */ color: rgb(23, 33, 97);
/* oklch */ color: oklch(28.5% 0.113 270.5);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#172161',
    950: '#000000',
  },
}
SCSS
$custom: #172161;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#172161",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 231.892,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28531,
    "c": 0.11329,
    "h": 270.5
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#172161
secondary
#988B3C
accent
#CF43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #172161

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

Preview Lab → · Contrast checker → · Palette generator →

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