#172C90#172C90

#172C90 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.165 H 267.2°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#172C90
RGBrgb(23, 44, 144)
HSLhsl(230, 72%, 33%)
HSVhsv(230, 84%, 56%)
CMYKcmyk(84%, 69.4%, 0%, 43.5%)
CIE-LABlab(23.66, 31.26, -56.99)
CIE-LCHlch(23.66, 65.00, 298.74°)
OKLaboklab(35.43% -0.0081 -0.1651)
OKLCHoklch(35.43% 0.165 267.2)
XYZxyz(6.2863, 3.9964, 26.8202)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C90 #907B17
analogous
#176890 #172C90 #3F1790
triadic
#172C90 #90172C #2C9017
tetradic
#172C90 #901768 #907B17 #17903F
square
#172C90 #901768 #907B17 #17903F
split-complementary
#172C90 #903F17 #689017
monochromatic
#060C26 #0F1C5B #172C90 #1F3CC5 #415DE1

Accessibility & contrast

On white

11.67
#172C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#172C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C90
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C90#FFFFFF#000000##FFFFFF
##172C901.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172c90;
/* rgb */ color: rgb(23, 44, 144);
/* oklch */ color: oklch(35.4% 0.165 267.2);
Tailwind
colors: {
  custom: {
    50: '#6c65b2',
    500: '#172c90',
    950: '#000000',
  },
}
SCSS
$custom: #172c90;
$custom-light: #6c65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172c90",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 229.587,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35431,
    "c": 0.16534,
    "h": 267.2
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#172C90
secondary
#C1AB42
accent
#CF39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172C90

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

Preview Lab → · Contrast checker → · Palette generator →

#172C90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva