#172EB4#172EB4

#172EB4 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.6% C 0.209 H 266.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#172EB4
RGBrgb(23, 46, 180)
HSLhsl(231, 77%, 40%)
HSVhsv(231, 87%, 71%)
CMYKcmyk(87.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(27.93, 43.24, -71.81)
CIE-LCHlch(27.93, 83.82, 301.05°)
OKLaboklab(39.64% -0.0121 -0.2082)
OKLCHoklch(39.64% 0.209 266.7)
XYZxyz(9.5657, 5.4302, 43.7151)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172EB4 #B49D17
analogous
#177DB4 #172EB4 #4E17B4
triadic
#172EB4 #B4172E #2EB417
tetradic
#172EB4 #B4177D #B49D17 #17B44E
square
#172EB4 #B4177D #B49D17 #17B44E
split-complementary
#172EB4 #B44E17 #7DB417
monochromatic
#091247 #10207E #172EB4 #2541E3 #5B70EA

Accessibility & contrast

On white

10.07
#172EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#172EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172EB4
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172EB4#FFFFFF#000000##FFFFFF
##172EB41.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003AB2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #172eb4;
/* rgb */ color: rgb(23, 46, 180);
/* oklch */ color: oklch(39.6% 0.209 266.7);
Tailwind
colors: {
  custom: {
    50: '#7668cc',
    500: '#172eb4',
    950: '#000000',
  },
}
SCSS
$custom: #172eb4;
$custom-light: #7668cc;
$custom-dark: #000000;
JSON
{
  "hex": "#172eb4",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 231.21,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39643,
    "c": 0.20857,
    "h": 266.7
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#172EB4
secondary
#CEBD59
accent
#D834F4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #172EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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