#170226#170226

#170226 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.075 H 307.9°. Best body text is #FFFFFF at 19.57:1 contrast (WCAG AA passes).

Color values

HEX#170226
RGBrgb(23, 2, 38)
HSLhsl(275, 90%, 8%)
HSVhsv(275, 95%, 15%)
CMYKcmyk(39.5%, 94.7%, 0%, 85.1%)
CIE-LABlab(3.30, 15.46, -18.28)
CIE-LCHlch(3.30, 23.94, 310.22°)
OKLaboklab(16.38% 0.046 -0.059)
OKLCHoklch(16.38% 0.075 307.9)
XYZxyz(0.7248, 0.3655, 1.8657)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170226 #112602
analogous
#050226 #170226 #260223
triadic
#170226 #261702 #022617
tetradic
#170226 #260502 #112602 #022326
square
#170226 #260502 #112602 #022326
split-complementary
#170226 #232602 #022605
monochromatic
#12021D #12021D #170226 #3A0560 #5D089A

Accessibility & contrast

On white

19.57
#170226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170226
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170226#FFFFFF#000000##FFFFFF
##1702261.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B27
Deuteranopia (green-blind)
#000C25
Tritanopia (blue-blind)
#150913
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #170226;
/* rgb */ color: rgb(23, 2, 38);
/* oklch */ color: oklch(16.4% 0.075 307.9);
Tailwind
colors: {
  custom: {
    50: '#544760',
    500: '#170226',
    950: '#000000',
  },
}
SCSS
$custom: #170226;
$custom-light: #544760;
$custom-dark: #000000;
JSON
{
  "hex": "#170226",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 275,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16383,
    "c": 0.07485,
    "h": 307.9
  },
  "luminance": 0.00366
}

Semantic roles & 50–950 ramp

primary
#170226
secondary
#3B6B18
accent
#FF2982
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#030005
muted
#787779

Preview Lab

Preview with #170226

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

Preview Lab → · Contrast checker → · Palette generator →

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