#170F4B#170F4B

#170F4B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.105 H 280.2°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#170F4B
RGBrgb(23, 15, 75)
HSLhsl(248, 67%, 18%)
HSVhsv(248, 80%, 29%)
CMYKcmyk(69.3%, 80%, 0%, 70.6%)
CIE-LABlab(9.25, 24.27, -35.65)
CIE-LCHlch(9.25, 43.13, 304.25°)
OKLaboklab(22.82% 0.0185 -0.1029)
OKLCHoklch(22.82% 0.105 280.2)
XYZxyz(1.7938, 1.0317, 6.7599)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F4B #434B0F
analogous
#0F254B #170F4B #350F4B
triadic
#170F4B #4B170F #0F4B17
tetradic
#170F4B #4B0F25 #434B0F #0F4B35
square
#170F4B #4B0F25 #434B0F #0F4B35
split-complementary
#170F4B #4B350F #254B0F
monochromatic
#08051A #08051A #170F4B #27197E #3623B1

Accessibility & contrast

On white

17.41
#170F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F4B
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F4B#FFFFFF#000000##FFFFFF
##170F4B1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170f4b;
/* rgb */ color: rgb(23, 15, 75);
/* oklch */ color: oklch(22.8% 0.105 280.2);
Tailwind
colors: {
  custom: {
    50: '#5c4e7e',
    500: '#170f4b',
    950: '#000000',
  },
}
SCSS
$custom: #170f4b;
$custom-light: #5c4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#170f4b",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 248,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22823,
    "c": 0.10451,
    "h": 280.2
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#170F4B
secondary
#7A8530
accent
#EA3ED3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #170F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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