#172170#172170

#172170 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.135 H 270.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#172170
RGBrgb(23, 33, 112)
HSLhsl(233, 66%, 26%)
HSVhsv(233, 79%, 44%)
CMYKcmyk(79.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(17.64, 26.27, -46.64)
CIE-LCHlch(17.64, 53.53, 299.39°)
OKLaboklab(30.06% 0.0001 -0.135)
OKLCHoklch(30.06% 0.135 270.1)
XYZxyz(3.8208, 2.4393, 15.5956)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172170 #706617
analogous
#174E70 #172170 #3A1770
triadic
#172170 #701721 #217017
tetradic
#172170 #70174E #706617 #17703A
square
#172170 #70174E #706617 #17703A
split-complementary
#172170 #703A17 #4E7017
monochromatic
#050719 #0D123D #172170 #2130A3 #2D40D4

Accessibility & contrast

On white

14.11
#172170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172170
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172170#FFFFFF#000000##FFFFFF
##1721701.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172170;
/* rgb */ color: rgb(23, 33, 112);
/* oklch */ color: oklch(30.1% 0.135 270.1);
Tailwind
colors: {
  custom: {
    50: '#645c9a',
    500: '#172170',
    950: '#000000',
  },
}
SCSS
$custom: #172170;
$custom-light: #645c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#172170",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 233.258,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30063,
    "c": 0.13496,
    "h": 270.1
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#172170
secondary
#A69A3D
accent
#D63FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172170

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

Preview Lab → · Contrast checker → · Palette generator →

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