#172163#172163

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

Color values

HEX#172163
RGBrgb(23, 33, 99)
HSLhsl(232, 62%, 24%)
HSVhsv(232, 77%, 39%)
CMYKcmyk(76.8%, 66.7%, 0%, 61.2%)
CIE-LABlab(16.36, 21.11, -40.25)
CIE-LCHlch(16.36, 45.45, 297.68°)
OKLaboklab(28.73% 0.001 -0.1162)
OKLCHoklch(28.73% 0.116 270.5)
XYZxyz(3.1486, 2.1704, 12.0550)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172163 #635917
analogous
#174763 #172163 #331763
triadic
#172163 #631721 #216317
tetradic
#172163 #631747 #635917 #176333
square
#172163 #631747 #635917 #176333
split-complementary
#172163 #633317 #476317
monochromatic
#060819 #0B1031 #172163 #233295 #2E42C6

Accessibility & contrast

On white

14.64
#172163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172163
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172163#FFFFFF#000000##FFFFFF
##1721631.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172163;
/* rgb */ color: rgb(23, 33, 99);
/* oklch */ color: oklch(28.7% 0.116 270.5);
Tailwind
colors: {
  custom: {
    50: '#615c90',
    500: '#172163',
    950: '#000000',
  },
}
SCSS
$custom: #172163;
$custom-light: #615c90;
$custom-dark: #000000;
JSON
{
  "hex": "#172163",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 99
  },
  "hsl": {
    "h": 232.105,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28728,
    "c": 0.11625,
    "h": 270.5
  },
  "luminance": 0.02171
}

Semantic roles & 50–950 ramp

primary
#172163
secondary
#9A8D3C
accent
#D042E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040D
muted
#7A797D

Preview Lab

Preview with #172163

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

Preview Lab → · Contrast checker → · Palette generator →

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