#31144C#31144C

#31144C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.099 H 304.2°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#31144C
RGBrgb(49, 20, 76)
HSLhsl(271, 58%, 19%)
HSVhsv(271, 74%, 30%)
CMYKcmyk(35.5%, 73.7%, 0%, 70.2%)
CIE-LABlab(13.68, 26.87, -28.99)
CIE-LCHlch(13.68, 39.53, 312.83°)
OKLaboklab(26.76% 0.0559 -0.0823)
OKLCHoklch(26.76% 0.099 304.2)
XYZxyz(2.8210, 1.6751, 7.0108)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31144C #2F4C14
analogous
#15144C #31144C #4C144B
triadic
#31144C #4C3114 #144C31
tetradic
#31144C #4C1514 #2F4C14 #144B4C
square
#31144C #4C1514 #2F4C14 #144B4C
split-complementary
#31144C #4B4C14 #144C15
monochromatic
#100618 #12071C #31144C #50217C #6F2EAD

Accessibility & contrast

On white

15.73
#31144C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#31144C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31144C
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31144C#FFFFFF#000000##FFFFFF
##31144C1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#03234B
Tritanopia (blue-blind)
#2C202E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31144c;
/* rgb */ color: rgb(49, 20, 76);
/* oklch */ color: oklch(26.8% 0.099 304.2);
Tailwind
colors: {
  custom: {
    50: '#6c547e',
    500: '#31144c',
    950: '#000000',
  },
}
SCSS
$custom: #31144c;
$custom-light: #6c547e;
$custom-dark: #000000;
JSON
{
  "hex": "#31144c",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 76
  },
  "hsl": {
    "h": 271.071,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26764,
    "c": 0.09949,
    "h": 304.2
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#31144C
secondary
#5D8438
accent
#E24691
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #31144C

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

Preview Lab → · Contrast checker → · Palette generator →

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