#31114A#31114A

#31114A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.102 H 306.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#31114A
RGBrgb(49, 17, 74)
HSLhsl(274, 63%, 18%)
HSVhsv(274, 77%, 29%)
CMYKcmyk(33.8%, 77%, 0%, 71%)
CIE-LABlab(12.91, 27.99, -28.85)
CIE-LCHlch(12.91, 40.20, 314.14°)
OKLaboklab(26.16% 0.06 -0.0819)
OKLCHoklch(26.16% 0.102 306.2)
XYZxyz(2.7028, 1.5483, 6.6337)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31114A #2A4A11
analogous
#14114A #31114A #4A1146
triadic
#31114A #4A3111 #114A31
tetradic
#31114A #4A1411 #2A4A11 #11464A
square
#31114A #4A1411 #2A4A11 #11464A
split-complementary
#31114A #464A11 #114A14
monochromatic
#100619 #100619 #31114A #521C7C #7328AE

Accessibility & contrast

On white

16.04
#31114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#31114A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31114A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31114A#FFFFFF#000000##FFFFFF
##31114A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#2D1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31114a;
/* rgb */ color: rgb(49, 17, 74);
/* oklch */ color: oklch(26.2% 0.102 306.2);
Tailwind
colors: {
  custom: {
    50: '#6c527d',
    500: '#31114a',
    950: '#000000',
  },
}
SCSS
$custom: #31114a;
$custom-light: #6c527d;
$custom-dark: #000000;
JSON
{
  "hex": "#31114a",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 273.684,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26161,
    "c": 0.10152,
    "h": 306.2
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#31114A
secondary
#568333
accent
#E6428A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #31114A

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

Preview Lab → · Contrast checker → · Palette generator →

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