#171F6B#171F6B

#171F6B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.130 H 270.8°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#171F6B
RGBrgb(23, 31, 107)
HSLhsl(234, 65%, 25%)
HSVhsv(234, 79%, 42%)
CMYKcmyk(78.5%, 71%, 0%, 58%)
CIE-LABlab(16.62, 25.69, -45.07)
CIE-LCHlch(16.62, 51.88, 299.69°)
OKLaboklab(29.16% 0.0019 -0.1304)
OKLCHoklch(29.16% 0.13 270.8)
XYZxyz(3.4963, 2.2233, 14.1519)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6B #6B6317
analogous
#17496B #171F6B #39176B
triadic
#171F6B #6B171F #1F6B17
tetradic
#171F6B #6B1749 #6B6317 #176B39
square
#171F6B #6B1749 #6B6317 #176B39
split-complementary
#171F6B #6B3917 #496B17
monochromatic
#050719 #0C1039 #171F6B #222E9D #2D3CD0

Accessibility & contrast

On white

14.53
#171F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6B
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6B#FFFFFF#000000##FFFFFF
##171F6B1.0014.531.4414.53
#FFFFFF14.531.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171f6b;
/* rgb */ color: rgb(23, 31, 107);
/* oklch */ color: oklch(29.2% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#635a96',
    500: '#171f6b',
    950: '#000000',
  },
}
SCSS
$custom: #171f6b;
$custom-light: #635a96;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6b",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 234.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29162,
    "c": 0.1304,
    "h": 270.8
  },
  "luminance": 0.02224
}

Semantic roles & 50–950 ramp

primary
#171F6B
secondary
#A1983D
accent
#D840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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