#170227#170227

#170227 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.076 H 306.9°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#170227
RGBrgb(23, 2, 39)
HSLhsl(274, 90%, 8%)
HSVhsv(274, 95%, 15%)
CMYKcmyk(41%, 94.9%, 0%, 84.7%)
CIE-LABlab(3.36, 15.87, -18.96)
CIE-LCHlch(3.36, 24.73, 309.94°)
OKLaboklab(16.49% 0.0456 -0.0608)
OKLCHoklch(16.49% 0.076 306.9)
XYZxyz(0.7412, 0.3721, 1.9518)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170227 #122702
analogous
#040227 #170227 #270224
triadic
#170227 #271702 #022717
tetradic
#170227 #270402 #122702 #022427
square
#170227 #270402 #122702 #022427
split-complementary
#170227 #242702 #022704
monochromatic
#11011D #11011D #170227 #390561 #5C089B

Accessibility & contrast

On white

19.55
#170227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#170227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170227
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170227#FFFFFF#000000##FFFFFF
##1702271.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B28
Deuteranopia (green-blind)
#000C26
Tritanopia (blue-blind)
#140A13
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #170227;
/* rgb */ color: rgb(23, 2, 39);
/* oklch */ color: oklch(16.5% 0.076 306.9);
Tailwind
colors: {
  custom: {
    50: '#544761',
    500: '#170227',
    950: '#000000',
  },
}
SCSS
$custom: #170227;
$custom-light: #544761;
$custom-dark: #000000;
JSON
{
  "hex": "#170227",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 274.054,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.1649,
    "c": 0.07602,
    "h": 306.9
  },
  "luminance": 0.00372
}

Semantic roles & 50–950 ramp

primary
#170227
secondary
#3D6C18
accent
#FF2985
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#030005
muted
#787779

Preview Lab

Preview with #170227

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

Preview Lab → · Contrast checker → · Palette generator →

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