#170F6E#170F6E

#170F6E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.151 H 273.4°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#170F6E
RGBrgb(23, 15, 110)
HSLhsl(245, 76%, 25%)
HSVhsv(245, 86%, 43%)
CMYKcmyk(79.1%, 86.4%, 0%, 56.9%)
CIE-LABlab(13.53, 36.46, -52.14)
CIE-LCHlch(13.53, 63.62, 304.97°)
OKLaboklab(27.07% 0.0088 -0.1508)
OKLCHoklch(27.07% 0.151 273.4)
XYZxyz(3.3377, 1.6492, 14.8913)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F6E #666E0F
analogous
#0F366E #170F6E #470F6E
triadic
#170F6E #6E170F #0F6E17
tetradic
#170F6E #6E0F36 #666E0F #0F6E47
square
#170F6E #6E0F36 #666E0F #0F6E47
split-complementary
#170F6E #6E470F #366E0F
monochromatic
#06041B #0C0838 #170F6E #2216A4 #2E1EDA

Accessibility & contrast

On white

15.79
#170F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F6E
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F6E#FFFFFF#000000##FFFFFF
##170F6E1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002771
Deuteranopia (green-blind)
#001E6C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #170f6e;
/* rgb */ color: rgb(23, 15, 110);
/* oklch */ color: oklch(27.1% 0.151 273.4);
Tailwind
colors: {
  custom: {
    50: '#665199',
    500: '#170f6e',
    950: '#000000',
  },
}
SCSS
$custom: #170f6e;
$custom-light: #665199;
$custom-dark: #000000;
JSON
{
  "hex": "#170f6e",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 110
  },
  "hsl": {
    "h": 245.053,
    "s": 76,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27071,
    "c": 0.15106,
    "h": 273.4
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#170F6E
secondary
#9CA633
accent
#F335E3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #170F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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