#171C7B#171C7B

#171C7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.155 H 270.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#171C7B
RGBrgb(23, 28, 123)
HSLhsl(237, 68%, 29%)
HSVhsv(237, 81%, 48%)
CMYKcmyk(81.3%, 77.2%, 0%, 51.8%)
CIE-LABlab(17.66, 33.68, -53.69)
CIE-LCHlch(17.66, 63.38, 302.10°)
OKLaboklab(30.43% 0.0012 -0.1555)
OKLCHoklch(30.43% 0.156 270.4)
XYZxyz(4.3425, 2.4422, 18.9776)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7B #7B7617
analogous
#174E7B #171C7B #44177B
triadic
#171C7B #7B171C #1C7B17
tetradic
#171C7B #7B174E #7B7617 #177B44
square
#171C7B #7B174E #7B7617 #177B44
split-complementary
#171C7B #7B4417 #4E7B17
monochromatic
#05061A #0D1047 #171C7B #2128AF #333CD9

Accessibility & contrast

On white

14.11
#171C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C7B
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7B#FFFFFF#000000##FFFFFF
##171C7B1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171c7b;
/* rgb */ color: rgb(23, 28, 123);
/* oklch */ color: oklch(30.4% 0.155 270.4);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#171c7b',
    950: '#000000',
  },
}
SCSS
$custom: #171c7b;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7b",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 237,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30431,
    "c": 0.1555,
    "h": 270.4
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#171C7B
secondary
#B0AA3E
accent
#E33CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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