#172FA1#172FA1

#172FA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.184 H 266.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#172FA1
RGBrgb(23, 47, 161)
HSLhsl(230, 75%, 36%)
HSVhsv(230, 86%, 63%)
CMYKcmyk(85.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(26.12, 35.73, -63.36)
CIE-LCHlch(26.12, 72.74, 299.42°)
OKLaboklab(37.74% -0.0106 -0.1837)
OKLCHoklch(37.74% 0.184 266.7)
XYZxyz(7.8006, 4.7874, 34.2242)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172FA1 #A18917
analogous
#1774A1 #172FA1 #4417A1
triadic
#172FA1 #A1172F #2FA117
tetradic
#172FA1 #A11774 #A18917 #17A144
square
#172FA1 #A11774 #A18917 #17A144
split-complementary
#172FA1 #A14417 #74A117
monochromatic
#081036 #0F1F6B #172FA1 #1F3FD7 #4D67E6

Accessibility & contrast

On white

10.73
#172FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#172FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172FA1
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172FA1#FFFFFF#000000##FFFFFF
##172FA11.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #172fa1;
/* rgb */ color: rgb(23, 47, 161);
/* oklch */ color: oklch(37.7% 0.184 266.7);
Tailwind
colors: {
  custom: {
    50: '#7168be',
    500: '#172fa1',
    950: '#000000',
  },
}
SCSS
$custom: #172fa1;
$custom-light: #7168be;
$custom-dark: #000000;
JSON
{
  "hex": "#172fa1",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 229.565,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37742,
    "c": 0.184,
    "h": 266.7
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#172FA1
secondary
#C7B24C
accent
#D136F2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #172FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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