#171F65#171F65

#171F65 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.5% C 0.122 H 271.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#171F65
RGBrgb(23, 31, 101)
HSLhsl(234, 63%, 24%)
HSVhsv(234, 77%, 40%)
CMYKcmyk(77.2%, 69.3%, 0%, 60.4%)
CIE-LABlab(16.01, 23.33, -42.13)
CIE-LCHlch(16.01, 48.16, 298.98°)
OKLaboklab(28.53% 0.0024 -0.1218)
OKLCHoklch(28.53% 0.122 271.1)
XYZxyz(3.1915, 2.1014, 12.5468)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F65 #655D17
analogous
#174665 #171F65 #361765
triadic
#171F65 #65171F #1F6517
tetradic
#171F65 #651746 #655D17 #176536
square
#171F65 #651746 #655D17 #176536
split-complementary
#171F65 #653617 #466517
monochromatic
#060819 #0C1033 #171F65 #222E97 #2E3EC9

Accessibility & contrast

On white

14.78
#171F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F65
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F65#FFFFFF#000000##FFFFFF
##171F651.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171f65;
/* rgb */ color: rgb(23, 31, 101);
/* oklch */ color: oklch(28.5% 0.122 271.1);
Tailwind
colors: {
  custom: {
    50: '#615a92',
    500: '#171f65',
    950: '#000000',
  },
}
SCSS
$custom: #171f65;
$custom-light: #615a92;
$custom-dark: #000000;
JSON
{
  "hex": "#171f65",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 233.846,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28534,
    "c": 0.12182,
    "h": 271.1
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#171F65
secondary
#9B923C
accent
#D542E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F65

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

Preview Lab → · Contrast checker → · Palette generator →

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