#170F4C#170F4C

#170F4C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.106 H 279.9°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#170F4C
RGBrgb(23, 15, 76)
HSLhsl(248, 67%, 18%)
HSVhsv(248, 80%, 30%)
CMYKcmyk(69.7%, 80.3%, 0%, 70.2%)
CIE-LABlab(9.36, 24.64, -36.16)
CIE-LCHlch(9.36, 43.76, 304.27°)
OKLaboklab(22.94% 0.0183 -0.1043)
OKLCHoklch(22.94% 0.106 279.9)
XYZxyz(1.8283, 1.0455, 6.9415)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F4C #444C0F
analogous
#0F254C #170F4C #350F4C
triadic
#170F4C #4C170F #0F4C17
tetradic
#170F4C #4C0F25 #444C0F #0F4C35
square
#170F4C #4C0F25 #444C0F #0F4C35
split-complementary
#170F4C #4C350F #254C0F
monochromatic
#08051A #08051A #170F4C #26197F #3623B2

Accessibility & contrast

On white

17.37
#170F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F4C
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F4C#FFFFFF#000000##FFFFFF
##170F4C1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170f4c;
/* rgb */ color: rgb(23, 15, 76);
/* oklch */ color: oklch(22.9% 0.106 279.9);
Tailwind
colors: {
  custom: {
    50: '#5d4e7f',
    500: '#170f4c',
    950: '#000000',
  },
}
SCSS
$custom: #170f4c;
$custom-light: #5d4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#170f4c",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 247.869,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22936,
    "c": 0.10594,
    "h": 279.9
  },
  "luminance": 0.01046
}

Semantic roles & 50–950 ramp

primary
#170F4C
secondary
#7B8631
accent
#EA3ED3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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