#171852#171852

#171852 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.103 H 275.4°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#171852
RGBrgb(23, 24, 82)
HSLhsl(239, 56%, 21%)
HSVhsv(239, 72%, 32%)
CMYKcmyk(72%, 70.7%, 0%, 67.8%)
CIE-LABlab(12.25, 20.78, -35.56)
CIE-LCHlch(12.25, 41.19, 300.30°)
OKLaboklab(25.21% 0.0096 -0.1026)
OKLCHoklch(25.21% 0.103 275.4)
XYZxyz(2.2025, 1.4444, 8.1437)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171852 #525117
analogous
#173552 #171852 #331752
triadic
#171852 #521718 #185217
tetradic
#171852 #521735 #525117 #175233
square
#171852 #521735 #525117 #175233
split-complementary
#171852 #523317 #355217
monochromatic
#070718 #0A0A22 #171852 #242682 #3234B2

Accessibility & contrast

On white

16.29
#171852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171852
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171852#FFFFFF#000000##FFFFFF
##1718521.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171852;
/* rgb */ color: rgb(23, 24, 82);
/* oklch */ color: oklch(25.2% 0.103 275.4);
Tailwind
colors: {
  custom: {
    50: '#5d5583',
    500: '#171852',
    950: '#000000',
  },
}
SCSS
$custom: #171852;
$custom-light: #5d5583;
$custom-dark: #000000;
JSON
{
  "hex": "#171852",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 238.983,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25207,
    "c": 0.10303,
    "h": 275.4
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#171852
secondary
#89883C
accent
#DD48DF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171852

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

Preview Lab → · Contrast checker → · Palette generator →

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