#171F69#171F69

#171F69 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.128 H 270.9°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#171F69
RGBrgb(23, 31, 105)
HSLhsl(234, 64%, 25%)
HSVhsv(234, 78%, 41%)
CMYKcmyk(78.1%, 70.5%, 0%, 58.8%)
CIE-LABlab(16.41, 24.91, -44.10)
CIE-LCHlch(16.41, 50.65, 299.46°)
OKLaboklab(28.95% 0.002 -0.1275)
OKLCHoklch(28.95% 0.128 270.9)
XYZxyz(3.3923, 2.1817, 13.6042)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F69 #696117
analogous
#174869 #171F69 #381769
triadic
#171F69 #69171F #1F6917
tetradic
#171F69 #691748 #696117 #176938
square
#171F69 #691748 #696117 #176938
split-complementary
#171F69 #693817 #486917
monochromatic
#050719 #0C1037 #171F69 #222E9B #2D3DCD

Accessibility & contrast

On white

14.62
#171F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F69
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F69#FFFFFF#000000##FFFFFF
##171F691.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171f69;
/* rgb */ color: rgb(23, 31, 105);
/* oklch */ color: oklch(29.0% 0.128 270.9);
Tailwind
colors: {
  custom: {
    50: '#635a95',
    500: '#171f69',
    950: '#000000',
  },
}
SCSS
$custom: #171f69;
$custom-light: #635a95;
$custom-dark: #000000;
JSON
{
  "hex": "#171f69",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 234.146,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28951,
    "c": 0.12757,
    "h": 270.9
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#171F69
secondary
#9F963D
accent
#D741E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F69

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

Preview Lab → · Contrast checker → · Palette generator →

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