#172B85#172B85

#172B85 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.152 H 267.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#172B85
RGBrgb(23, 43, 133)
HSLhsl(229, 71%, 31%)
HSVhsv(229, 83%, 52%)
CMYKcmyk(82.7%, 67.7%, 0%, 47.8%)
CIE-LABlab(22.31, 27.66, -52.35)
CIE-LCHlch(22.31, 59.21, 297.85°)
OKLaboklab(34.11% -0.007 -0.1516)
OKLCHoklch(34.11% 0.152 267.4)
XYZxyz(5.4494, 3.6027, 22.5939)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B85 #857117
analogous
#176285 #172B85 #3A1785
triadic
#172B85 #85172B #2B8517
tetradic
#172B85 #851762 #857117 #17853A
square
#172B85 #851762 #857117 #17853A
split-complementary
#172B85 #853A17 #628517
monochromatic
#05091D #0E1A51 #172B85 #203CB9 #3A57DD

Accessibility & contrast

On white

12.21
#172B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B85
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B85#FFFFFF#000000##FFFFFF
##172B851.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172b85;
/* rgb */ color: rgb(23, 43, 133);
/* oklch */ color: oklch(34.1% 0.152 267.4);
Tailwind
colors: {
  custom: {
    50: '#6964a9',
    500: '#172b85',
    950: '#000000',
  },
}
SCSS
$custom: #172b85;
$custom-light: #6964a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172b85",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 229.091,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.15175,
    "h": 267.4
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#172B85
secondary
#B9A33F
accent
#CD3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172B85

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

Preview Lab → · Contrast checker → · Palette generator →

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