#172A90#172A90

#172A90 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.168 H 267.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#172A90
RGBrgb(23, 42, 144)
HSLhsl(231, 72%, 33%)
HSVhsv(231, 84%, 56%)
CMYKcmyk(84%, 70.8%, 0%, 43.5%)
CIE-LABlab(23.17, 32.57, -57.79)
CIE-LCHlch(23.17, 66.34, 299.41°)
OKLaboklab(35.08% -0.0073 -0.1675)
OKLCHoklch(35.08% 0.168 267.5)
XYZxyz(6.2136, 3.8510, 26.7960)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A90 #907D17
analogous
#176690 #172A90 #411790
triadic
#172A90 #90172A #2A9017
tetradic
#172A90 #901766 #907D17 #179041
square
#172A90 #901766 #907D17 #179041
split-complementary
#172A90 #904117 #669017
monochromatic
#060B26 #0F1B5B #172A90 #1F39C5 #415AE1

Accessibility & contrast

On white

11.86
#172A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#172A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A90
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A90#FFFFFF#000000##FFFFFF
##172A901.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.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: #172a90;
/* rgb */ color: rgb(23, 42, 144);
/* oklch */ color: oklch(35.1% 0.168 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c64b2',
    500: '#172a90',
    950: '#000000',
  },
}
SCSS
$custom: #172a90;
$custom-light: #6c64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172a90",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 230.579,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35077,
    "c": 0.16764,
    "h": 267.5
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#172A90
secondary
#C1AD42
accent
#D339EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #172A90

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

Preview Lab → · Contrast checker → · Palette generator →

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