#170F45#170F45

#170F45 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.096 H 282.0°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#170F45
RGBrgb(23, 15, 69)
HSLhsl(249, 64%, 16%)
HSVhsv(249, 78%, 27%)
CMYKcmyk(66.7%, 78.3%, 0%, 72.9%)
CIE-LABlab(8.60, 22.07, -32.53)
CIE-LCHlch(8.60, 39.31, 304.15°)
OKLaboklab(22.16% 0.0199 -0.0937)
OKLCHoklch(22.16% 0.096 282)
XYZxyz(1.5980, 0.9534, 5.7289)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F45 #3D450F
analogous
#0F2245 #170F45 #320F45
triadic
#170F45 #45170F #0F4517
tetradic
#170F45 #450F22 #3D450F #0F4532
square
#170F45 #450F22 #3D450F #0F4532
split-complementary
#170F45 #45320F #22450F
monochromatic
#080519 #080519 #170F45 #281A77 #3925AA

Accessibility & contrast

On white

17.64
#170F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#170F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F45
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F45#FFFFFF#000000##FFFFFF
##170F451.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001744
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170f45;
/* rgb */ color: rgb(23, 15, 69);
/* oklch */ color: oklch(22.2% 0.096 282.0);
Tailwind
colors: {
  custom: {
    50: '#5b4e79',
    500: '#170f45',
    950: '#000000',
  },
}
SCSS
$custom: #170f45;
$custom-light: #5b4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#170f45",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 248.889,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22156,
    "c": 0.09581,
    "h": 282
  },
  "luminance": 0.00953
}

Semantic roles & 50–950 ramp

primary
#170F45
secondary
#747F30
accent
#E741CF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170F45

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

Preview Lab → · Contrast checker → · Palette generator →

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