#171E7C#171E7C

#171E7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.155 H 270.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#171E7C
RGBrgb(23, 30, 124)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(81.5%, 75.8%, 0%, 51.4%)
CIE-LABlab(18.21, 32.81, -53.41)
CIE-LCHlch(18.21, 62.68, 301.56°)
OKLaboklab(30.86% 0.0002 -0.1547)
OKLCHoklch(30.86% 0.155 270.1)
XYZxyz(4.4545, 2.5654, 19.3253)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7C #7C7517
analogous
#17517C #171E7C #43177C
triadic
#171E7C #7C171E #1E7C17
tetradic
#171E7C #7C1751 #7C7517 #177C43
square
#171E7C #7C1751 #7C7517 #177C43
split-complementary
#171E7C #7C4317 #517C17
monochromatic
#05061A #0D1248 #171E7C #212AB0 #3440D9

Accessibility & contrast

On white

13.88
#171E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E7C
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7C#FFFFFF#000000##FFFFFF
##171E7C1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.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: #171e7c;
/* rgb */ color: rgb(23, 30, 124);
/* oklch */ color: oklch(30.9% 0.155 270.1);
Tailwind
colors: {
  custom: {
    50: '#685ba3',
    500: '#171e7c',
    950: '#000000',
  },
}
SCSS
$custom: #171e7c;
$custom-light: #685ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7c",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 235.842,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30861,
    "c": 0.15469,
    "h": 270.1
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#171E7C
secondary
#B1A93E
accent
#DF3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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