#171F7B#171F7B

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

Color values

HEX#171F7B
RGBrgb(23, 31, 123)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 48%)
CMYKcmyk(81.3%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.33, 31.80, -52.58)
CIE-LCHlch(18.33, 61.45, 301.17°)
OKLaboklab(30.91% -0.0001 -0.1523)
OKLCHoklch(30.91% 0.152 270)
XYZxyz(4.4173, 2.5917, 19.0025)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F7B #7B7317
analogous
#17517B #171F7B #41177B
triadic
#171F7B #7B171F #1F7B17
tetradic
#171F7B #7B1751 #7B7317 #177B41
square
#171F7B #7B1751 #7B7317 #177B41
split-complementary
#171F7B #7B4117 #517B17
monochromatic
#05061A #0D1247 #171F7B #212CAF #3341D9

Accessibility & contrast

On white

13.83
#171F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F7B
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F7B#FFFFFF#000000##FFFFFF
##171F7B1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171f7b;
/* rgb */ color: rgb(23, 31, 123);
/* oklch */ color: oklch(30.9% 0.152 270.0);
Tailwind
colors: {
  custom: {
    50: '#685ba2',
    500: '#171f7b',
    950: '#000000',
  },
}
SCSS
$custom: #171f7b;
$custom-light: #685ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#171f7b",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 235.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.15229,
    "h": 270
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#171F7B
secondary
#B0A73E
accent
#DD3CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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