#31164C#31164C

#31164C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.096 H 303.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#31164C
RGBrgb(49, 22, 76)
HSLhsl(270, 55%, 19%)
HSVhsv(270, 71%, 30%)
CMYKcmyk(35.5%, 71.1%, 0%, 70.2%)
CIE-LABlab(14.11, 25.70, -28.30)
CIE-LCHlch(14.11, 38.22, 312.24°)
OKLaboklab(27.07% 0.0532 -0.0803)
OKLCHoklch(27.07% 0.096 303.6)
XYZxyz(2.8577, 1.7486, 7.0230)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31164C #314C16
analogous
#16164C #31164C #4C164C
triadic
#31164C #4C3116 #164C31
tetradic
#31164C #4C1616 #314C16 #164C4C
square
#31164C #4C1616 #314C16 #164C4C
split-complementary
#31164C #4C4C16 #164C16
monochromatic
#0F0718 #12081D #31164C #50247B #6E31AB

Accessibility & contrast

On white

15.56
#31164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#31164C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31164C
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31164C#FFFFFF#000000##FFFFFF
##31164C1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#06244B
Tritanopia (blue-blind)
#2C222E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #31164c;
/* rgb */ color: rgb(49, 22, 76);
/* oklch */ color: oklch(27.1% 0.096 303.6);
Tailwind
colors: {
  custom: {
    50: '#6c557e',
    500: '#31164c',
    950: '#000000',
  },
}
SCSS
$custom: #31164c;
$custom-light: #6c557e;
$custom-dark: #000000;
JSON
{
  "hex": "#31164c",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27072,
    "c": 0.09633,
    "h": 303.6
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#31164C
secondary
#5F843A
accent
#DE4994
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #31164C

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

Preview Lab → · Contrast checker → · Palette generator →

#31164C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva