#27173D#27173D

#27173D is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.7% C 0.071 H 300.8°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#27173D
RGBrgb(39, 23, 61)
HSLhsl(265, 45%, 16%)
HSVhsv(265, 62%, 24%)
CMYKcmyk(36.1%, 62.3%, 0%, 76.1%)
CIE-LABlab(11.83, 17.74, -21.55)
CIE-LCHlch(11.83, 27.91, 309.46°)
OKLaboklab(24.73% 0.0362 -0.0609)
OKLCHoklch(24.73% 0.071 300.8)
XYZxyz(1.9852, 1.3810, 4.5760)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27173D #2D3D17
analogous
#171A3D #27173D #3A173D
triadic
#27173D #3D2717 #173D27
tetradic
#27173D #3D171A #2D3D17 #173D3A
square
#27173D #3D171A #2D3D17 #173D3A
split-complementary
#27173D #3D3A17 #1A3D17
monochromatic
#0E0816 #0E0816 #27173D #432869 #603996

Accessibility & contrast

On white

16.46
#27173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#27173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27173D
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27173D#FFFFFF#000000##FFFFFF
##27173D1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081F3E
Deuteranopia (green-blind)
#0D1F3C
Tritanopia (blue-blind)
#231E27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #27173d;
/* rgb */ color: rgb(39, 23, 61);
/* oklch */ color: oklch(24.7% 0.071 300.8);
Tailwind
colors: {
  custom: {
    50: '#635473',
    500: '#27173d',
    950: '#000000',
  },
}
SCSS
$custom: #27173d;
$custom-light: #635473;
$custom-dark: #000000;
JSON
{
  "hex": "#27173d",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 265.263,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24734,
    "c": 0.07083,
    "h": 300.8
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#27173D
secondary
#5C743C
accent
#D5539E
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050308
muted
#79787B

Preview Lab

Preview with #27173D

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

Preview Lab → · Contrast checker → · Palette generator →

#27173D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva