#171D7C#171D7C

#171D7C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.156 H 270.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#171D7C
RGBrgb(23, 29, 124)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(81.5%, 76.6%, 0%, 51.4%)
CIE-LABlab(17.99, 33.43, -53.78)
CIE-LCHlch(17.99, 63.32, 301.87°)
OKLaboklab(30.7% 0.0006 -0.1558)
OKLCHoklch(30.7% 0.156 270.2)
XYZxyz(4.4296, 2.5156, 19.3170)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7C #7C7617
analogous
#17507C #171D7C #44177C
triadic
#171D7C #7C171D #1D7C17
tetradic
#171D7C #7C1750 #7C7617 #177C44
square
#171D7C #7C1750 #7C7617 #177C44
split-complementary
#171D7C #7C4417 #507C17
monochromatic
#05061A #0D1148 #171D7C #2129B0 #343ED9

Accessibility & contrast

On white

13.97
#171D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7C
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7C#FFFFFF#000000##FFFFFF
##171D7C1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171d7c;
/* rgb */ color: rgb(23, 29, 124);
/* oklch */ color: oklch(30.7% 0.156 270.2);
Tailwind
colors: {
  custom: {
    50: '#685aa3',
    500: '#171d7c',
    950: '#000000',
  },
}
SCSS
$custom: #171d7c;
$custom-light: #685aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7c",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 236.436,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30702,
    "c": 0.15576,
    "h": 270.2
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#171D7C
secondary
#B1AA3E
accent
#E13CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7C

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

Preview Lab → · Contrast checker → · Palette generator →

#171D7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva