#170F6D#170F6D

#170F6D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.9% C 0.150 H 273.5°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#170F6D
RGBrgb(23, 15, 109)
HSLhsl(245, 76%, 24%)
HSVhsv(245, 86%, 43%)
CMYKcmyk(78.9%, 86.2%, 0%, 57.3%)
CIE-LABlab(13.40, 36.13, -51.70)
CIE-LCHlch(13.40, 63.07, 304.95°)
OKLaboklab(26.94% 0.0091 -0.1495)
OKLCHoklch(26.94% 0.15 273.5)
XYZxyz(3.2836, 1.6276, 14.6061)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F6D #656D0F
analogous
#0F366D #170F6D #460F6D
triadic
#170F6D #6D170F #0F6D17
tetradic
#170F6D #6D0F36 #656D0F #0F6D46
square
#170F6D #6D0F36 #656D0F #0F6D46
split-complementary
#170F6D #6D460F #366D0F
monochromatic
#06041B #0C0837 #170F6D #2216A3 #2E1ED9

Accessibility & contrast

On white

15.84
#170F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#170F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F6D
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F6D#FFFFFF#000000##FFFFFF
##170F6D1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002770
Deuteranopia (green-blind)
#001E6B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #170f6d;
/* rgb */ color: rgb(23, 15, 109);
/* oklch */ color: oklch(26.9% 0.150 273.5);
Tailwind
colors: {
  custom: {
    50: '#655198',
    500: '#170f6d',
    950: '#000000',
  },
}
SCSS
$custom: #170f6d;
$custom-light: #655198;
$custom-dark: #000000;
JSON
{
  "hex": "#170f6d",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 109
  },
  "hsl": {
    "h": 245.106,
    "s": 75.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.26944,
    "c": 0.14981,
    "h": 273.5
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#170F6D
secondary
#9BA533
accent
#F235E2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #170F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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