#172F85#172F85

#172F85 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.147 H 266.4°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#172F85
RGBrgb(23, 47, 133)
HSLhsl(227, 71%, 31%)
HSVhsv(227, 83%, 52%)
CMYKcmyk(82.7%, 64.7%, 0%, 47.8%)
CIE-LABlab(23.36, 24.91, -50.62)
CIE-LCHlch(23.36, 56.42, 296.20°)
OKLaboklab(34.89% -0.0092 -0.1465)
OKLCHoklch(34.89% 0.147 266.4)
XYZxyz(5.6020, 3.9080, 22.6448)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F85 #856D17
analogous
#176685 #172F85 #361785
triadic
#172F85 #85172F #2F8517
tetradic
#172F85 #851766 #856D17 #178536
square
#172F85 #851766 #856D17 #178536
split-complementary
#172F85 #853617 #668517
monochromatic
#050A1D #0E1D51 #172F85 #2041B9 #3A5DDD

Accessibility & contrast

On white

11.79
#172F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#172F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F85
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F85#FFFFFF#000000##FFFFFF
##172F851.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172f85;
/* rgb */ color: rgb(23, 47, 133);
/* oklch */ color: oklch(34.9% 0.147 266.4);
Tailwind
colors: {
  custom: {
    50: '#6967a9',
    500: '#172f85',
    950: '#000000',
  },
}
SCSS
$custom: #172f85;
$custom-light: #6967a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172f85",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 226.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34889,
    "c": 0.14679,
    "h": 266.4
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#172F85
secondary
#B99E3F
accent
#C63BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #172F85

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

Preview Lab → · Contrast checker → · Palette generator →

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