#172E90#172E90

#172E90 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.163 H 266.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#172E90
RGBrgb(23, 46, 144)
HSLhsl(229, 72%, 33%)
HSVhsv(229, 84%, 56%)
CMYKcmyk(84%, 68.1%, 0%, 43.5%)
CIE-LABlab(24.16, 29.92, -56.17)
CIE-LCHlch(24.16, 63.65, 298.04°)
OKLaboklab(35.8% -0.0091 -0.1627)
OKLCHoklch(35.8% 0.163 266.8)
XYZxyz(6.3626, 4.1490, 26.8456)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E90 #907917
analogous
#176A90 #172E90 #3C1790
triadic
#172E90 #90172E #2E9017
tetradic
#172E90 #90176A #907917 #17903C
square
#172E90 #90176A #907917 #17903C
split-complementary
#172E90 #903C17 #6A9017
monochromatic
#060C26 #0F1D5B #172E90 #1F3FC5 #415FE1

Accessibility & contrast

On white

11.48
#172E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#172E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E90
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E90#FFFFFF#000000##FFFFFF
##172E901.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172e90;
/* rgb */ color: rgb(23, 46, 144);
/* oklch */ color: oklch(35.8% 0.163 266.8);
Tailwind
colors: {
  custom: {
    50: '#6c66b2',
    500: '#172e90',
    950: '#000000',
  },
}
SCSS
$custom: #172e90;
$custom-light: #6c66b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172e90",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 228.595,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35795,
    "c": 0.16298,
    "h": 266.8
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#172E90
secondary
#C1A942
accent
#CC39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172E90

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

Preview Lab → · Contrast checker → · Palette generator →

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