#170C50#170C50

#170C50 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 23.0% C 0.115 H 279.7°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#170C50
RGBrgb(23, 12, 80)
HSLhsl(250, 74%, 18%)
HSVhsv(250, 85%, 31%)
CMYKcmyk(71.2%, 85%, 0%, 68.6%)
CIE-LABlab(9.19, 27.88, -39.22)
CIE-LCHlch(9.19, 48.12, 305.41°)
OKLaboklab(22.95% 0.0193 -0.1132)
OKLCHoklch(22.95% 0.115 279.7)
XYZxyz(1.9323, 1.0241, 7.6837)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C50 #45500C
analogous
#0C2350 #170C50 #390C50
triadic
#170C50 #50170C #0C5017
tetradic
#170C50 #500C23 #45500C #0C5039
square
#170C50 #500C23 #45500C #0C5039
split-complementary
#170C50 #50390C #23500C
monochromatic
#08041B #08041B #170C50 #261485 #361CBA

Accessibility & contrast

On white

17.43
#170C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C50
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C50#FFFFFF#000000##FFFFFF
##170C501.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C52
Deuteranopia (green-blind)
#00174F
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170c50;
/* rgb */ color: rgb(23, 12, 80);
/* oklch */ color: oklch(23.0% 0.115 279.7);
Tailwind
colors: {
  custom: {
    50: '#5e4d82',
    500: '#170c50',
    950: '#000000',
  },
}
SCSS
$custom: #170c50;
$custom-light: #5e4d82;
$custom-dark: #000000;
JSON
{
  "hex": "#170c50",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 249.706,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22954,
    "c": 0.11485,
    "h": 279.7
  },
  "luminance": 0.01024
}

Semantic roles & 50–950 ramp

primary
#170C50
secondary
#7C8B2C
accent
#F137D3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #170C50

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

Preview Lab → · Contrast checker → · Palette generator →

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