#170229#170229

#170229 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.078 H 304.9°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#170229
RGBrgb(23, 2, 41)
HSLhsl(272, 91%, 8%)
HSVhsv(272, 95%, 16%)
CMYKcmyk(43.9%, 95.1%, 0%, 83.9%)
CIE-LABlab(3.48, 16.74, -20.30)
CIE-LCHlch(3.48, 26.31, 309.50°)
OKLaboklab(16.71% 0.0449 -0.0643)
OKLCHoklch(16.71% 0.078 304.9)
XYZxyz(0.7752, 0.3857, 2.1310)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170229 #142902
analogous
#030229 #170229 #290227
triadic
#170229 #291702 #022917
tetradic
#170229 #290302 #142902 #022729
square
#170229 #290302 #142902 #022729
split-complementary
#170229 #272902 #022903
monochromatic
#10011D #10011D #170229 #380563 #58089E

Accessibility & contrast

On white

19.49
#170229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#170229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170229
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170229#FFFFFF#000000##FFFFFF
##1702291.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2A
Deuteranopia (green-blind)
#000D28
Tritanopia (blue-blind)
#130A14
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #170229;
/* rgb */ color: rgb(23, 2, 41);
/* oklch */ color: oklch(16.7% 0.078 304.9);
Tailwind
colors: {
  custom: {
    50: '#544763',
    500: '#170229',
    950: '#000000',
  },
}
SCSS
$custom: #170229;
$custom-light: #544763;
$custom-dark: #000000;
JSON
{
  "hex": "#170229",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 272.308,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.16707,
    "c": 0.07838,
    "h": 304.9
  },
  "luminance": 0.00386
}

Semantic roles & 50–950 ramp

primary
#170229
secondary
#406E19
accent
#FF298C
background
#F4F4F5
surface
#E8E6EA
border
#C4C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #170229

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

Preview Lab → · Contrast checker → · Palette generator →

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