#172F90#172F90

#172F90 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.162 H 266.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#172F90
RGBrgb(23, 47, 144)
HSLhsl(228, 72%, 33%)
HSVhsv(228, 84%, 56%)
CMYKcmyk(84%, 67.4%, 0%, 43.5%)
CIE-LABlab(24.41, 29.25, -55.76)
CIE-LCHlch(24.41, 62.96, 297.68°)
OKLaboklab(35.98% -0.0096 -0.1615)
OKLCHoklch(35.98% 0.162 266.6)
XYZxyz(6.4021, 4.2280, 26.8588)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F90 #907817
analogous
#176B90 #172F90 #3B1790
triadic
#172F90 #90172F #2F9017
tetradic
#172F90 #90176B #907817 #17903B
square
#172F90 #90176B #907817 #17903B
split-complementary
#172F90 #903B17 #6B9017
monochromatic
#060D26 #0F1E5B #172F90 #1F40C5 #4160E1

Accessibility & contrast

On white

11.38
#172F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#172F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F90
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F90#FFFFFF#000000##FFFFFF
##172F901.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #172f90;
/* rgb */ color: rgb(23, 47, 144);
/* oklch */ color: oklch(36.0% 0.162 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c67b1',
    500: '#172f90',
    950: '#000000',
  },
}
SCSS
$custom: #172f90;
$custom-light: #6c67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172f90",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 228.099,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.16179,
    "h": 266.6
  },
  "luminance": 0.04229
}

Semantic roles & 50–950 ramp

primary
#172F90
secondary
#C1A842
accent
#CB39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172F90

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

Preview Lab → · Contrast checker → · Palette generator →

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