#172EA1#172EA1

#172EA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.185 H 266.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#172EA1
RGBrgb(23, 46, 161)
HSLhsl(230, 75%, 36%)
HSVhsv(230, 86%, 63%)
CMYKcmyk(85.7%, 71.4%, 0%, 36.9%)
CIE-LABlab(25.89, 36.37, -63.75)
CIE-LCHlch(25.89, 73.39, 299.71°)
OKLaboklab(37.57% -0.0103 -0.1848)
OKLCHoklch(37.57% 0.185 266.8)
XYZxyz(7.7611, 4.7084, 34.2111)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172EA1 #A18A17
analogous
#1773A1 #172EA1 #4517A1
triadic
#172EA1 #A1172E #2EA117
tetradic
#172EA1 #A11773 #A18A17 #17A145
square
#172EA1 #A11773 #A18A17 #17A145
split-complementary
#172EA1 #A14517 #73A117
monochromatic
#080F36 #0F1F6B #172EA1 #1F3DD7 #4D66E6

Accessibility & contrast

On white

10.81
#172EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#172EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172EA1
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172EA1#FFFFFF#000000##FFFFFF
##172EA11.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172ea1;
/* rgb */ color: rgb(23, 46, 161);
/* oklch */ color: oklch(37.6% 0.185 266.8);
Tailwind
colors: {
  custom: {
    50: '#7167be',
    500: '#172ea1',
    950: '#000000',
  },
}
SCSS
$custom: #172ea1;
$custom-light: #7167be;
$custom-dark: #000000;
JSON
{
  "hex": "#172ea1",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 230,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.1851,
    "h": 266.8
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#172EA1
secondary
#C7B34C
accent
#D236F2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #172EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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