#172985#172985

#172985 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.154 H 267.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#172985
RGBrgb(23, 41, 133)
HSLhsl(230, 71%, 31%)
HSVhsv(230, 83%, 52%)
CMYKcmyk(82.7%, 69.2%, 0%, 47.8%)
CIE-LABlab(21.80, 29.02, -53.19)
CIE-LCHlch(21.80, 60.59, 298.62°)
OKLaboklab(33.74% -0.006 -0.154)
OKLCHoklch(33.74% 0.154 267.8)
XYZxyz(5.3785, 3.4609, 22.5703)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172985 #857317
analogous
#176085 #172985 #3C1785
triadic
#172985 #851729 #298517
tetradic
#172985 #851760 #857317 #17853C
square
#172985 #851760 #857317 #17853C
split-complementary
#172985 #853C17 #608517
monochromatic
#05091D #0E1951 #172985 #2039B9 #3A54DD

Accessibility & contrast

On white

12.41
#172985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172985
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172985#FFFFFF#000000##FFFFFF
##1729851.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172985;
/* rgb */ color: rgb(23, 41, 133);
/* oklch */ color: oklch(33.7% 0.154 267.8);
Tailwind
colors: {
  custom: {
    50: '#6962a9',
    500: '#172985',
    950: '#000000',
  },
}
SCSS
$custom: #172985;
$custom-light: #6962a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172985",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 230.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.15416,
    "h": 267.8
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#172985
secondary
#B9A53F
accent
#D03BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #172985

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

Preview Lab → · Contrast checker → · Palette generator →

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