#172166#172166

#172166 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.121 H 270.4°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#172166
RGBrgb(23, 33, 102)
HSLhsl(232, 63%, 25%)
HSVhsv(232, 77%, 40%)
CMYKcmyk(77.5%, 67.6%, 0%, 60%)
CIE-LABlab(16.64, 22.32, -41.75)
CIE-LCHlch(16.64, 47.34, 298.13°)
OKLaboklab(29.03% 0.0009 -0.1207)
OKLCHoklch(29.03% 0.121 270.4)
XYZxyz(3.2947, 2.2288, 12.8244)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172166 #665C17
analogous
#174966 #172166 #351766
triadic
#172166 #661721 #216617
tetradic
#172166 #661749 #665C17 #176635
square
#172166 #661749 #665C17 #176635
split-complementary
#172166 #663517 #496617
monochromatic
#060819 #0C1134 #172166 #223198 #2E41CA

Accessibility & contrast

On white

14.52
#172166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172166
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172166#FFFFFF#000000##FFFFFF
##1721661.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172166;
/* rgb */ color: rgb(23, 33, 102);
/* oklch */ color: oklch(29.0% 0.121 270.4);
Tailwind
colors: {
  custom: {
    50: '#625c92',
    500: '#172166',
    950: '#000000',
  },
}
SCSS
$custom: #172166;
$custom-light: #625c92;
$custom-dark: #000000;
JSON
{
  "hex": "#172166",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 232.405,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29029,
    "c": 0.12066,
    "h": 270.4
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#172166
secondary
#9C903C
accent
#D142E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172166

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

Preview Lab → · Contrast checker → · Palette generator →

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