#172890#172890

#172890 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.170 H 267.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#172890
RGBrgb(23, 40, 144)
HSLhsl(232, 72%, 33%)
HSVhsv(232, 84%, 56%)
CMYKcmyk(84%, 72.2%, 0%, 43.5%)
CIE-LABlab(22.70, 33.87, -58.58)
CIE-LCHlch(22.70, 67.66, 300.04°)
OKLaboklab(34.73% -0.0064 -0.1698)
OKLCHoklch(34.73% 0.17 267.8)
XYZxyz(6.1444, 3.7126, 26.7729)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172890 #907F17
analogous
#176590 #172890 #421790
triadic
#172890 #901728 #289017
tetradic
#172890 #901765 #907F17 #179042
square
#172890 #901765 #907F17 #179042
split-complementary
#172890 #904217 #659017
monochromatic
#060B26 #0F195B #172890 #1F37C5 #4157E1

Accessibility & contrast

On white

12.05
#172890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#172890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172890
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172890#FFFFFF#000000##FFFFFF
##1728901.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.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: #172890;
/* rgb */ color: rgb(23, 40, 144);
/* oklch */ color: oklch(34.7% 0.170 267.8);
Tailwind
colors: {
  custom: {
    50: '#6d62b2',
    500: '#172890',
    950: '#000000',
  },
}
SCSS
$custom: #172890;
$custom-light: #6d62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172890",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 231.57,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.16988,
    "h": 267.8
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#172890
secondary
#C1AF42
accent
#D639EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #172890

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

Preview Lab → · Contrast checker → · Palette generator →

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