#171270#171270

#171270 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.151 H 272.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#171270
RGBrgb(23, 18, 112)
HSLhsl(243, 72%, 25%)
HSVhsv(243, 84%, 44%)
CMYKcmyk(79.5%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.31, 35.59, -52.14)
CIE-LCHlch(14.31, 63.12, 304.32°)
OKLaboklab(27.69% 0.0073 -0.1509)
OKLCHoklch(27.69% 0.151 272.8)
XYZxyz(3.4933, 1.7843, 15.4864)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171270 #6B7012
analogous
#123C70 #171270 #461270
triadic
#171270 #701712 #127017
tetradic
#171270 #70123C #6B7012 #127046
square
#171270 #70123C #6B7012 #127046
split-complementary
#171270 #704612 #3C7012
monochromatic
#05041A #0C0A3B #171270 #221AA5 #2D23D9

Accessibility & contrast

On white

15.48
#171270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171270
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171270#FFFFFF#000000##FFFFFF
##1712701.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00206E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171270;
/* rgb */ color: rgb(23, 18, 112);
/* oklch */ color: oklch(27.7% 0.151 272.8);
Tailwind
colors: {
  custom: {
    50: '#66529a',
    500: '#171270',
    950: '#000000',
  },
}
SCSS
$custom: #171270;
$custom-light: #66529a;
$custom-dark: #000000;
JSON
{
  "hex": "#171270",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 243.191,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2769,
    "c": 0.15104,
    "h": 272.8
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#171270
secondary
#A1A737
accent
#EF39E5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171270

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

Preview Lab → · Contrast checker → · Palette generator →

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