#170C52#170C52

#170C52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.118 H 279.1°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#170C52
RGBrgb(23, 12, 82)
HSLhsl(249, 74%, 18%)
HSVhsv(249, 85%, 32%)
CMYKcmyk(72%, 85.4%, 0%, 67.8%)
CIE-LABlab(9.43, 28.58, -40.19)
CIE-LCHlch(9.43, 49.31, 305.41°)
OKLaboklab(23.2% 0.0187 -0.116)
OKLCHoklch(23.2% 0.118 279.1)
XYZxyz(2.0073, 1.0541, 8.0787)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C52 #47520C
analogous
#0C2452 #170C52 #3A0C52
triadic
#170C52 #52170C #0C5217
tetradic
#170C52 #520C24 #47520C #0C523A
square
#170C52 #520C24 #47520C #0C523A
split-complementary
#170C52 #523A0C #24520C
monochromatic
#07041B #08041D #170C52 #261487 #351CBD

Accessibility & contrast

On white

17.34
#170C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#170C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C52
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C52#FFFFFF#000000##FFFFFF
##170C521.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170c52;
/* rgb */ color: rgb(23, 12, 82);
/* oklch */ color: oklch(23.2% 0.118 279.1);
Tailwind
colors: {
  custom: {
    50: '#5e4d83',
    500: '#170c52',
    950: '#000000',
  },
}
SCSS
$custom: #170c52;
$custom-light: #5e4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#170c52",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 249.429,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23196,
    "c": 0.11754,
    "h": 279.1
  },
  "luminance": 0.01054
}

Semantic roles & 50–950 ramp

primary
#170C52
secondary
#7E8D2C
accent
#F137D4
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170C52

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

Preview Lab → · Contrast checker → · Palette generator →

#170C52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva