#170C5F#170C5F

#170C5F is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.8% C 0.135 H 276.2°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#170C5F
RGBrgb(23, 12, 95)
HSLhsl(248, 78%, 21%)
HSVhsv(248, 87%, 37%)
CMYKcmyk(75.8%, 87.4%, 0%, 62.7%)
CIE-LABlab(11.07, 32.99, -46.29)
CIE-LCHlch(11.07, 56.84, 305.48°)
OKLaboklab(24.81% 0.0145 -0.1338)
OKLCHoklch(24.81% 0.135 276.2)
XYZxyz(2.5497, 1.2711, 10.9352)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C5F #545F0C
analogous
#0C2A5F #170C5F #400C5F
triadic
#170C5F #5F170C #0C5F17
tetradic
#170C5F #5F0C2A #545F0C #0C5F40
square
#170C5F #5F0C2A #545F0C #0C5F40
split-complementary
#170C5F #5F400C #2A5F0C
monochromatic
#07031B #0A0529 #170C5F #241395 #311ACC

Accessibility & contrast

On white

16.74
#170C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#170C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C5F
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C5F#FFFFFF#000000##FFFFFF
##170C5F1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001A5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170c5f;
/* rgb */ color: rgb(23, 12, 95);
/* oklch */ color: oklch(24.8% 0.135 276.2);
Tailwind
colors: {
  custom: {
    50: '#624e8d',
    500: '#170c5f',
    950: '#000000',
  },
}
SCSS
$custom: #170c5f;
$custom-light: #624e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#170c5f",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 247.952,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24813,
    "c": 0.13457,
    "h": 276.2
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#170C5F
secondary
#8B992D
accent
#F434DB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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