#172990#172990

#172990 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.169 H 267.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#172990
RGBrgb(23, 41, 144)
HSLhsl(231, 72%, 33%)
HSVhsv(231, 84%, 56%)
CMYKcmyk(84%, 71.5%, 0%, 43.5%)
CIE-LABlab(22.93, 33.23, -58.19)
CIE-LCHlch(22.93, 67.01, 299.73°)
OKLaboklab(34.9% -0.0068 -0.1686)
OKLCHoklch(34.9% 0.169 267.7)
XYZxyz(6.1786, 3.7809, 26.7843)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172990 #907E17
analogous
#176690 #172990 #411790
triadic
#172990 #901729 #299017
tetradic
#172990 #901766 #907E17 #179041
square
#172990 #901766 #907E17 #179041
split-complementary
#172990 #904117 #669017
monochromatic
#060B26 #0F1A5B #172990 #1F38C5 #4159E1

Accessibility & contrast

On white

11.96
#172990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#172990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172990
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172990#FFFFFF#000000##FFFFFF
##1729901.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172990;
/* rgb */ color: rgb(23, 41, 144);
/* oklch */ color: oklch(34.9% 0.169 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d63b2',
    500: '#172990',
    950: '#000000',
  },
}
SCSS
$custom: #172990;
$custom-light: #6d63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172990",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 231.074,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.16877,
    "h": 267.7
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#172990
secondary
#C1AE42
accent
#D439EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #172990

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

Preview Lab → · Contrast checker → · Palette generator →

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