#172070#172070

#172070 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.136 H 270.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#172070
RGBrgb(23, 32, 112)
HSLhsl(234, 66%, 26%)
HSVhsv(234, 79%, 44%)
CMYKcmyk(79.5%, 71.4%, 0%, 56.1%)
CIE-LABlab(17.39, 26.96, -47.06)
CIE-LCHlch(17.39, 54.23, 299.81°)
OKLaboklab(29.88% 0.0007 -0.1362)
OKLCHoklch(29.88% 0.136 270.3)
XYZxyz(3.7935, 2.3846, 15.5864)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172070 #706717
analogous
#174D70 #172070 #3B1770
triadic
#172070 #701720 #207017
tetradic
#172070 #70174D #706717 #17703B
square
#172070 #70174D #706717 #17703B
split-complementary
#172070 #703B17 #4D7017
monochromatic
#050719 #0D113D #172070 #212FA3 #2D3ED4

Accessibility & contrast

On white

14.22
#172070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172070
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172070#FFFFFF#000000##FFFFFF
##1720701.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172070;
/* rgb */ color: rgb(23, 32, 112);
/* oklch */ color: oklch(29.9% 0.136 270.3);
Tailwind
colors: {
  custom: {
    50: '#645b9a',
    500: '#172070',
    950: '#000000',
  },
}
SCSS
$custom: #172070;
$custom-light: #645b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#172070",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 112
  },
  "hsl": {
    "h": 233.933,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29879,
    "c": 0.13618,
    "h": 270.3
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#172070
secondary
#A69B3D
accent
#D83FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172070

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

Preview Lab → · Contrast checker → · Palette generator →

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