#172885#172885

#172885 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.155 H 268.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#172885
RGBrgb(23, 40, 133)
HSLhsl(231, 71%, 31%)
HSVhsv(231, 83%, 52%)
CMYKcmyk(82.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(21.55, 29.69, -53.60)
CIE-LCHlch(21.55, 61.27, 298.98°)
OKLaboklab(33.56% -0.0054 -0.1553)
OKLCHoklch(33.56% 0.155 268)
XYZxyz(5.3443, 3.3926, 22.5589)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172885 #857417
analogous
#175F85 #172885 #3D1785
triadic
#172885 #851728 #288517
tetradic
#172885 #85175F #857417 #17853D
square
#172885 #85175F #857417 #17853D
split-complementary
#172885 #853D17 #5F8517
monochromatic
#05091D #0E1851 #172885 #2038B9 #3A53DD

Accessibility & contrast

On white

12.51
#172885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172885
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172885#FFFFFF#000000##FFFFFF
##1728851.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172885;
/* rgb */ color: rgb(23, 40, 133);
/* oklch */ color: oklch(33.6% 0.155 268.0);
Tailwind
colors: {
  custom: {
    50: '#6962a9',
    500: '#172885',
    950: '#000000',
  },
}
SCSS
$custom: #172885;
$custom-light: #6962a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172885",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 230.727,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33559,
    "c": 0.15536,
    "h": 268
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#172885
secondary
#B9A63F
accent
#D23BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #172885

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

Preview Lab → · Contrast checker → · Palette generator →

#172885 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva