#172790#172790

#172790 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.171 H 268.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#172790
RGBrgb(23, 39, 144)
HSLhsl(232, 72%, 33%)
HSVhsv(232, 84%, 56%)
CMYKcmyk(84%, 72.9%, 0%, 43.5%)
CIE-LABlab(22.47, 34.51, -58.96)
CIE-LCHlch(22.47, 68.32, 300.34°)
OKLaboklab(34.57% -0.006 -0.1709)
OKLCHoklch(34.57% 0.171 268)
XYZxyz(6.1112, 3.6461, 26.7618)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172790 #908017
analogous
#176390 #172790 #431790
triadic
#172790 #901727 #279017
tetradic
#172790 #901763 #908017 #179043
square
#172790 #901763 #908017 #179043
split-complementary
#172790 #904317 #639017
monochromatic
#060A26 #0F195B #172790 #1F35C5 #4156E1

Accessibility & contrast

On white

12.14
#172790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#172790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172790
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172790#FFFFFF#000000##FFFFFF
##1727901.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172790;
/* rgb */ color: rgb(23, 39, 144);
/* oklch */ color: oklch(34.6% 0.171 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d61b2',
    500: '#172790',
    950: '#000000',
  },
}
SCSS
$custom: #172790;
$custom-light: #6d61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172790",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 232.066,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.17098,
    "h": 268
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#172790
secondary
#C1B042
accent
#D739EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #172790

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

Preview Lab → · Contrast checker → · Palette generator →

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