#27173E#27173E

#27173E is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.072 H 300.1°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#27173E
RGBrgb(39, 23, 62)
HSLhsl(265, 46%, 17%)
HSVhsv(265, 63%, 24%)
CMYKcmyk(37.1%, 62.9%, 0%, 75.7%)
CIE-LABlab(11.90, 18.05, -22.14)
CIE-LCHlch(11.90, 28.57, 309.18°)
OKLaboklab(24.81% 0.0363 -0.0626)
OKLCHoklch(24.81% 0.072 300.1)
XYZxyz(2.0124, 1.3919, 4.7191)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27173E #2E3E17
analogous
#171B3E #27173E #3B173E
triadic
#27173E #3E2717 #173E27
tetradic
#27173E #3E171B #2E3E17 #173E3B
square
#27173E #3E171B #2E3E17 #173E3B
split-complementary
#27173E #3E3B17 #1B3E17
monochromatic
#0E0816 #0E0816 #27173E #43286B #5F3897

Accessibility & contrast

On white

16.43
#27173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27173E
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27173E#FFFFFF#000000##FFFFFF
##27173E1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3F
Deuteranopia (green-blind)
#0C1F3D
Tritanopia (blue-blind)
#221F27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #27173e;
/* rgb */ color: rgb(39, 23, 62);
/* oklch */ color: oklch(24.8% 0.072 300.1);
Tailwind
colors: {
  custom: {
    50: '#635473',
    500: '#27173e',
    950: '#000000',
  },
}
SCSS
$custom: #27173e;
$custom-light: #635473;
$custom-dark: #000000;
JSON
{
  "hex": "#27173e",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 264.615,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24812,
    "c": 0.07235,
    "h": 300.1
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#27173E
secondary
#5D753C
accent
#D652A0
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #27173E

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

Preview Lab → · Contrast checker → · Palette generator →

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