#172172#172172

#172172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.138 H 270.0°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#172172
RGBrgb(23, 33, 114)
HSLhsl(233, 66%, 27%)
HSVhsv(233, 80%, 45%)
CMYKcmyk(79.8%, 71.1%, 0%, 55.3%)
CIE-LABlab(17.85, 27.05, -47.60)
CIE-LCHlch(17.85, 54.75, 299.61°)
OKLaboklab(30.28% -0.0001 -0.1377)
OKLCHoklch(30.28% 0.138 270)
XYZxyz(3.9334, 2.4843, 16.1885)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172172 #726817
analogous
#174F72 #172172 #3B1772
triadic
#172172 #721721 #217217
tetradic
#172172 #72174F #726817 #17723B
square
#172172 #72174F #726817 #17723B
split-complementary
#172172 #723B17 #4F7217
monochromatic
#050719 #0D123F #172172 #2130A5 #2E41D5

Accessibility & contrast

On white

14.03
#172172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172172
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172172#FFFFFF#000000##FFFFFF
##1721721.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172172;
/* rgb */ color: rgb(23, 33, 114);
/* oklch */ color: oklch(30.3% 0.138 270.0);
Tailwind
colors: {
  custom: {
    50: '#655c9b',
    500: '#172172',
    950: '#000000',
  },
}
SCSS
$custom: #172172;
$custom-light: #655c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172172",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 233.407,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30275,
    "c": 0.13775,
    "h": 270
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#172172
secondary
#A89C3D
accent
#D73EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172172

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

Preview Lab → · Contrast checker → · Palette generator →

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