#171254#171254

#171254 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.114 H 277.2°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#171254
RGBrgb(23, 18, 84)
HSLhsl(245, 65%, 20%)
HSVhsv(245, 79%, 33%)
CMYKcmyk(72.6%, 78.6%, 0%, 67.1%)
CIE-LABlab(10.95, 25.65, -39.05)
CIE-LCHlch(10.95, 46.72, 303.30°)
OKLaboklab(24.34% 0.0142 -0.1128)
OKLCHoklch(24.34% 0.114 277.2)
XYZxyz(2.1694, 1.2547, 8.5136)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171254 #4F5412
analogous
#122E54 #171254 #381254
triadic
#171254 #541712 #125417
tetradic
#171254 #54122E #4F5412 #125438
square
#171254 #54122E #4F5412 #125438
split-complementary
#171254 #543812 #2E5412
monochromatic
#070519 #090722 #171254 #251D86 #3328B9

Accessibility & contrast

On white

16.79
#171254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171254
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171254#FFFFFF#000000##FFFFFF
##1712541.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001B53
Tritanopia (blue-blind)
#002431
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #171254;
/* rgb */ color: rgb(23, 18, 84);
/* oklch */ color: oklch(24.3% 0.114 277.2);
Tailwind
colors: {
  custom: {
    50: '#5e5185',
    500: '#171254',
    950: '#000000',
  },
}
SCSS
$custom: #171254;
$custom-light: #5e5185;
$custom-dark: #000000;
JSON
{
  "hex": "#171254",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 244.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.24338,
    "c": 0.11367,
    "h": 277.2
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#171254
secondary
#868D35
accent
#E840DB
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171254

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

Preview Lab → · Contrast checker → · Palette generator →

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