#31114C#31114C

#31114C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.104 H 305.0°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#31114C
RGBrgb(49, 17, 76)
HSLhsl(273, 63%, 18%)
HSVhsv(273, 78%, 30%)
CMYKcmyk(35.5%, 77.6%, 0%, 70.2%)
CIE-LABlab(13.08, 28.54, -29.96)
CIE-LCHlch(13.08, 41.38, 313.61°)
OKLaboklab(26.33% 0.0597 -0.0851)
OKLCHoklch(26.33% 0.104 305)
XYZxyz(2.7713, 1.5757, 6.9942)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31114C #2C4C11
analogous
#13114C #31114C #4C1149
triadic
#31114C #4C3111 #114C31
tetradic
#31114C #4C1311 #2C4C11 #11494C
square
#31114C #4C1311 #2C4C11 #11494C
split-complementary
#31114C #494C11 #114C13
monochromatic
#100619 #11061A #31114C #511C7E #7127B0

Accessibility & contrast

On white

15.97
#31114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#31114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31114C
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31114C#FFFFFF#000000##FFFFFF
##31114C1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#2C1F2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31114c;
/* rgb */ color: rgb(49, 17, 76);
/* oklch */ color: oklch(26.3% 0.104 305.0);
Tailwind
colors: {
  custom: {
    50: '#6c527e',
    500: '#31114c',
    950: '#000000',
  },
}
SCSS
$custom: #31114c;
$custom-light: #6c527e;
$custom-dark: #000000;
JSON
{
  "hex": "#31114c",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 272.542,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26335,
    "c": 0.10397,
    "h": 305
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#31114C
secondary
#598533
accent
#E6418D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31114C

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

Preview Lab → · Contrast checker → · Palette generator →

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