#31164A#31164A

#31164A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.094 H 304.8°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#31164A
RGBrgb(49, 22, 74)
HSLhsl(271, 54%, 19%)
HSVhsv(271, 70%, 29%)
CMYKcmyk(33.8%, 70.3%, 0%, 71%)
CIE-LABlab(13.95, 25.13, -27.17)
CIE-LCHlch(13.95, 37.01, 312.76°)
OKLaboklab(26.91% 0.0534 -0.077)
OKLCHoklch(26.91% 0.094 304.8)
XYZxyz(2.7893, 1.7212, 6.6625)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31164A #2F4A16
analogous
#17164A #31164A #4A1649
triadic
#31164A #4A3116 #164A31
tetradic
#31164A #4A1716 #2F4A16 #16494A
square
#31164A #4A1716 #2F4A16 #16494A
split-complementary
#31164A #494A16 #164A17
monochromatic
#100718 #12081B #31164A #502479 #6F32A8

Accessibility & contrast

On white

15.62
#31164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#31164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31164A
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31164A#FFFFFF#000000##FFFFFF
##31164A1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#082449
Tritanopia (blue-blind)
#2C212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31164a;
/* rgb */ color: rgb(49, 22, 74);
/* oklch */ color: oklch(26.9% 0.094 304.8);
Tailwind
colors: {
  custom: {
    50: '#6c557d',
    500: '#31164a',
    950: '#000000',
  },
}
SCSS
$custom: #31164a;
$custom-light: #6c557d;
$custom-dark: #000000;
JSON
{
  "hex": "#31164a",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 271.154,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26907,
    "c": 0.09369,
    "h": 304.8
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#31164A
secondary
#5D823A
accent
#DE4A91
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #31164A

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

Preview Lab → · Contrast checker → · Palette generator →

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