#171255#171255

#171255 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.115 H 277.0°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#171255
RGBrgb(23, 18, 85)
HSLhsl(244, 65%, 20%)
HSVhsv(244, 79%, 33%)
CMYKcmyk(72.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(11.07, 26.01, -39.54)
CIE-LCHlch(11.07, 47.33, 303.34°)
OKLaboklab(24.45% 0.0139 -0.1142)
OKLCHoklch(24.45% 0.115 277)
XYZxyz(2.2088, 1.2705, 8.7214)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171255 #505512
analogous
#122E55 #171255 #391255
triadic
#171255 #551712 #125517
tetradic
#171255 #55122E #505512 #125539
square
#171255 #55122E #505512 #125539
split-complementary
#171255 #553912 #2E5512
monochromatic
#070519 #090722 #171255 #251D88 #3227BA

Accessibility & contrast

On white

16.74
#171255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#171255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171255
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171255#FFFFFF#000000##FFFFFF
##1712551.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001B54
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171255;
/* rgb */ color: rgb(23, 18, 85);
/* oklch */ color: oklch(24.5% 0.115 277.0);
Tailwind
colors: {
  custom: {
    50: '#5f5186',
    500: '#171255',
    950: '#000000',
  },
}
SCSS
$custom: #171255;
$custom-light: #5f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#171255",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 244.478,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24452,
    "c": 0.11509,
    "h": 277
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#171255
secondary
#878E35
accent
#E840DB
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171255

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

Preview Lab → · Contrast checker → · Palette generator →

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