#171F64#171F64

#171F64 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.4% C 0.120 H 271.2°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#171F64
RGBrgb(23, 31, 100)
HSLhsl(234, 63%, 24%)
HSVhsv(234, 77%, 39%)
CMYKcmyk(77%, 69%, 0%, 60.8%)
CIE-LABlab(15.91, 22.93, -41.64)
CIE-LCHlch(15.91, 47.54, 298.85°)
OKLaboklab(28.43% 0.0025 -0.1203)
OKLCHoklch(28.43% 0.12 271.2)
XYZxyz(3.1428, 2.0819, 12.2903)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F64 #645C17
analogous
#174664 #171F64 #361764
triadic
#171F64 #64171F #1F6417
tetradic
#171F64 #641746 #645C17 #176436
square
#171F64 #641746 #645C17 #176436
split-complementary
#171F64 #643617 #466417
monochromatic
#060819 #0C1032 #171F64 #222E96 #2E3EC8

Accessibility & contrast

On white

14.83
#171F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F64
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F64#FFFFFF#000000##FFFFFF
##171F641.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171f64;
/* rgb */ color: rgb(23, 31, 100);
/* oklch */ color: oklch(28.4% 0.120 271.2);
Tailwind
colors: {
  custom: {
    50: '#615a91',
    500: '#171f64',
    950: '#000000',
  },
}
SCSS
$custom: #171f64;
$custom-light: #615a91;
$custom-dark: #000000;
JSON
{
  "hex": "#171f64",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 233.766,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28431,
    "c": 0.12037,
    "h": 271.2
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171F64

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

Preview Lab → · Contrast checker → · Palette generator →

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