#171252#171252

#171252 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.1% C 0.111 H 277.6°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#171252
RGBrgb(23, 18, 82)
HSLhsl(245, 64%, 20%)
HSVhsv(245, 78%, 32%)
CMYKcmyk(72%, 78%, 0%, 67.8%)
CIE-LABlab(10.73, 24.90, -38.05)
CIE-LCHlch(10.73, 45.48, 303.21°)
OKLaboklab(24.11% 0.0146 -0.1099)
OKLCHoklch(24.11% 0.111 277.6)
XYZxyz(2.0922, 1.2238, 8.1070)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171252 #4D5212
analogous
#122D52 #171252 #371252
triadic
#171252 #521712 #125217
tetradic
#171252 #52122D #4D5212 #125237
square
#171252 #52122D #4D5212 #125237
split-complementary
#171252 #523712 #2D5212
monochromatic
#070619 #090720 #171252 #251D84 #3328B6

Accessibility & contrast

On white

16.87
#171252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#171252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171252
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171252#FFFFFF#000000##FFFFFF
##1712521.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #171252;
/* rgb */ color: rgb(23, 18, 82);
/* oklch */ color: oklch(24.1% 0.111 277.6);
Tailwind
colors: {
  custom: {
    50: '#5e5083',
    500: '#171252',
    950: '#000000',
  },
}
SCSS
$custom: #171252;
$custom-light: #5e5083;
$custom-dark: #000000;
JSON
{
  "hex": "#171252",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 244.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24112,
    "c": 0.11083,
    "h": 277.6
  },
  "luminance": 0.01224
}

Semantic roles & 50–950 ramp

primary
#171252
secondary
#848B35
accent
#E741DA
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #171252

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

Preview Lab → · Contrast checker → · Palette generator →

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