#171565#171565

#171565 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.134 H 273.7°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#171565
RGBrgb(23, 21, 101)
HSLhsl(242, 66%, 24%)
HSVhsv(242, 79%, 40%)
CMYKcmyk(77.2%, 79.2%, 0%, 60.4%)
CIE-LABlab(13.58, 29.99, -46.14)
CIE-LCHlch(13.58, 55.03, 303.02°)
OKLaboklab(26.78% 0.0086 -0.1335)
OKLCHoklch(26.78% 0.134 273.7)
XYZxyz(2.9697, 1.6578, 12.4729)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171565 #636515
analogous
#153B65 #171565 #3F1565
triadic
#171565 #651715 #156517
tetradic
#171565 #65153B #636515 #15653F
square
#171565 #65153B #636515 #15653F
split-complementary
#171565 #653F15 #3B6515
monochromatic
#060519 #0B0A32 #171565 #232098 #2E2ACA

Accessibility & contrast

On white

15.77
#171565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171565
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171565#FFFFFF#000000##FFFFFF
##1715651.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002667
Deuteranopia (green-blind)
#001F64
Tritanopia (blue-blind)
#002C3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171565;
/* rgb */ color: rgb(23, 21, 101);
/* oklch */ color: oklch(26.8% 0.134 273.7);
Tailwind
colors: {
  custom: {
    50: '#635392',
    500: '#171565',
    950: '#000000',
  },
}
SCSS
$custom: #171565;
$custom-light: #635392;
$custom-dark: #000000;
JSON
{
  "hex": "#171565",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 241.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.26782,
    "c": 0.13375,
    "h": 273.7
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#171565
secondary
#9A9C3A
accent
#E93FE4
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #171565

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

Preview Lab → · Contrast checker → · Palette generator →

#171565 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva