#171272#171272

#171272 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.154 H 272.5°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#171272
RGBrgb(23, 18, 114)
HSLhsl(243, 73%, 26%)
HSVhsv(243, 84%, 45%)
CMYKcmyk(79.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.56, 36.26, -53.02)
CIE-LCHlch(14.56, 64.23, 304.37°)
OKLaboklab(27.94% 0.0068 -0.1534)
OKLCHoklch(27.94% 0.154 272.5)
XYZxyz(3.6059, 1.8293, 16.0794)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171272 #6D7212
analogous
#123D72 #171272 #471272
triadic
#171272 #721712 #127217
tetradic
#171272 #72123D #6D7212 #127247
square
#171272 #72123D #6D7212 #127247
split-complementary
#171272 #724712 #3D7212
monochromatic
#05041A #0C0A3D #171272 #221AA7 #2C23DC

Accessibility & contrast

On white

15.37
#171272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171272
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171272#FFFFFF#000000##FFFFFF
##1712721.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171272;
/* rgb */ color: rgb(23, 18, 114);
/* oklch */ color: oklch(27.9% 0.154 272.5);
Tailwind
colors: {
  custom: {
    50: '#66539c',
    500: '#171272',
    950: '#000000',
  },
}
SCSS
$custom: #171272;
$custom-light: #66539c;
$custom-dark: #000000;
JSON
{
  "hex": "#171272",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 243.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27939,
    "c": 0.15356,
    "h": 272.5
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#171272
secondary
#A3A937
accent
#EF38E6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171272

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

Preview Lab → · Contrast checker → · Palette generator →

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