#172E85#172E85

#172E85 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.148 H 266.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#172E85
RGBrgb(23, 46, 133)
HSLhsl(227, 71%, 31%)
HSVhsv(227, 83%, 52%)
CMYKcmyk(82.7%, 65.4%, 0%, 47.8%)
CIE-LABlab(23.10, 25.60, -51.06)
CIE-LCHlch(23.10, 57.12, 296.63°)
OKLaboklab(34.69% -0.0087 -0.1478)
OKLCHoklch(34.69% 0.148 266.6)
XYZxyz(5.5625, 3.8289, 22.6316)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E85 #856E17
analogous
#176585 #172E85 #371785
triadic
#172E85 #85172E #2E8517
tetradic
#172E85 #851765 #856E17 #178537
square
#172E85 #851765 #856E17 #178537
split-complementary
#172E85 #853717 #658517
monochromatic
#050A1D #0E1C51 #172E85 #2040B9 #3A5CDD

Accessibility & contrast

On white

11.89
#172E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E85
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E85#FFFFFF#000000##FFFFFF
##172E851.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172e85;
/* rgb */ color: rgb(23, 46, 133);
/* oklch */ color: oklch(34.7% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#6966a9',
    500: '#172e85',
    950: '#000000',
  },
}
SCSS
$custom: #172e85;
$custom-light: #6966a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172e85",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 227.455,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34692,
    "c": 0.14804,
    "h": 266.6
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#172E85
secondary
#B99F3F
accent
#C83BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #172E85

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

Preview Lab → · Contrast checker → · Palette generator →

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