#171C7C#171C7C

#171C7C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.157 H 270.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#171C7C
RGBrgb(23, 28, 124)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 81%, 49%)
CMYKcmyk(81.5%, 77.4%, 0%, 51.4%)
CIE-LABlab(17.77, 34.04, -54.14)
CIE-LCHlch(17.77, 63.95, 302.16°)
OKLaboklab(30.55% 0.001 -0.1568)
OKLCHoklch(30.55% 0.157 270.4)
XYZxyz(4.4055, 2.4674, 19.3089)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7C #7C7717
analogous
#174F7C #171C7C #45177C
triadic
#171C7C #7C171C #1C7C17
tetradic
#171C7C #7C174F #7C7717 #177C45
square
#171C7C #7C174F #7C7717 #177C45
split-complementary
#171C7C #7C4517 #4F7C17
monochromatic
#05061A #0D1048 #171C7C #2128B0 #343CD9

Accessibility & contrast

On white

14.06
#171C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C7C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7C#FFFFFF#000000##FFFFFF
##171C7C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171c7c;
/* rgb */ color: rgb(23, 28, 124);
/* oklch */ color: oklch(30.5% 0.157 270.4);
Tailwind
colors: {
  custom: {
    50: '#6859a3',
    500: '#171c7c',
    950: '#000000',
  },
}
SCSS
$custom: #171c7c;
$custom-light: #6859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7c",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 237.03,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30547,
    "c": 0.1568,
    "h": 270.4
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#171C7C
secondary
#B1AB3E
accent
#E33CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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