#170E4C#170E4C

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

Color values

HEX#170E4C
RGBrgb(23, 14, 76)
HSLhsl(249, 69%, 18%)
HSVhsv(249, 82%, 30%)
CMYKcmyk(69.7%, 81.6%, 0%, 70.2%)
CIE-LABlab(9.14, 25.27, -36.53)
CIE-LCHlch(9.14, 44.42, 304.67°)
OKLaboklab(22.78% 0.0191 -0.1054)
OKLCHoklch(22.78% 0.107 280.2)
XYZxyz(1.8145, 1.0179, 6.9369)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E4C #434C0E
analogous
#0E244C #170E4C #360E4C
triadic
#170E4C #4C170E #0E4C17
tetradic
#170E4C #4C0E24 #434C0E #0E4C36
square
#170E4C #4C0E24 #434C0E #0E4C36
split-complementary
#170E4C #4C360E #244C0E
monochromatic
#08051A #08051A #170E4C #271880 #3621B3

Accessibility & contrast

On white

17.45
#170E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170E4C
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E4C#FFFFFF#000000##FFFFFF
##170E4C1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170e4c;
/* rgb */ color: rgb(23, 14, 76);
/* oklch */ color: oklch(22.8% 0.107 280.2);
Tailwind
colors: {
  custom: {
    50: '#5d4e7f',
    500: '#170e4c',
    950: '#000000',
  },
}
SCSS
$custom: #170e4c;
$custom-light: #5d4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#170e4c",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 248.71,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22777,
    "c": 0.10713,
    "h": 280.2
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#170E4C
secondary
#7A872F
accent
#EC3CD2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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