#172072#172072

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

Color values

HEX#172072
RGBrgb(23, 32, 114)
HSLhsl(234, 66%, 27%)
HSVhsv(234, 80%, 45%)
CMYKcmyk(79.8%, 71.9%, 0%, 55.3%)
CIE-LABlab(17.60, 27.73, -48.01)
CIE-LCHlch(17.60, 55.44, 300.01°)
OKLaboklab(30.09% 0.0005 -0.139)
OKLCHoklch(30.09% 0.139 270.2)
XYZxyz(3.9061, 2.4297, 16.1794)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172072 #726917
analogous
#174E72 #172072 #3C1772
triadic
#172072 #721720 #207217
tetradic
#172072 #72174E #726917 #17723C
square
#172072 #72174E #726917 #17723C
split-complementary
#172072 #723C17 #4E7217
monochromatic
#050719 #0D123F #172072 #212EA5 #2E3FD5

Accessibility & contrast

On white

14.13
#172072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172072
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172072#FFFFFF#000000##FFFFFF
##1720721.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172072;
/* rgb */ color: rgb(23, 32, 114);
/* oklch */ color: oklch(30.1% 0.139 270.2);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#172072',
    950: '#000000',
  },
}
SCSS
$custom: #172072;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172072",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 234.066,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30093,
    "c": 0.13896,
    "h": 270.2
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#172072
secondary
#A89D3D
accent
#D83EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172072

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

Preview Lab → · Contrast checker → · Palette generator →

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