#171F7E#171F7E

#171F7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.156 H 269.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#171F7E
RGBrgb(23, 31, 126)
HSLhsl(235, 69%, 29%)
HSVhsv(235, 82%, 49%)
CMYKcmyk(81.7%, 75.4%, 0%, 50.6%)
CIE-LABlab(18.66, 32.91, -53.94)
CIE-LCHlch(18.66, 63.19, 301.39°)
OKLaboklab(31.25% -0.0005 -0.1562)
OKLCHoklch(31.25% 0.156 269.8)
XYZxyz(4.6079, 2.6680, 20.0067)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F7E #7E7617
analogous
#17537E #171F7E #43177E
triadic
#171F7E #7E171F #1F7E17
tetradic
#171F7E #7E1753 #7E7617 #177E43
square
#171F7E #7E1753 #7E7617 #177E43
split-complementary
#171F7E #7E4317 #537E17
monochromatic
#05061A #0E124A #171F7E #202CB2 #3542DA

Accessibility & contrast

On white

13.69
#171F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F7E
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F7E#FFFFFF#000000##FFFFFF
##171F7E1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171f7e;
/* rgb */ color: rgb(23, 31, 126);
/* oklch */ color: oklch(31.2% 0.156 269.8);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#171f7e',
    950: '#000000',
  },
}
SCSS
$custom: #171f7e;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#171f7e",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 235.34,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.15624,
    "h": 269.8
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#171F7E
secondary
#B3AA3E
accent
#DE3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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