#31104A#31104A

#31104A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.103 H 306.5°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#31104A
RGBrgb(49, 16, 74)
HSLhsl(274, 64%, 18%)
HSVhsv(274, 78%, 29%)
CMYKcmyk(33.8%, 78.4%, 0%, 71%)
CIE-LABlab(12.72, 28.53, -29.16)
CIE-LCHlch(12.72, 40.79, 314.38°)
OKLaboklab(26.03% 0.0612 -0.0828)
OKLCHoklch(26.03% 0.103 306.5)
XYZxyz(2.6877, 1.5180, 6.6286)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31104A #294A10
analogous
#14104A #31104A #4A1046
triadic
#31104A #4A3110 #104A31
tetradic
#31104A #4A1410 #294A10 #10464A
square
#31104A #4A1410 #294A10 #10464A
split-complementary
#31104A #464A10 #104A14
monochromatic
#110519 #110519 #31104A #521B7C #7426AF

Accessibility & contrast

On white

16.11
#31104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#31104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31104A
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31104A#FFFFFF#000000##FFFFFF
##31104A1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31104a;
/* rgb */ color: rgb(49, 16, 74);
/* oklch */ color: oklch(26.0% 0.103 306.5);
Tailwind
colors: {
  custom: {
    50: '#6c517d',
    500: '#31104a',
    950: '#000000',
  },
}
SCSS
$custom: #31104a;
$custom-light: #6c517d;
$custom-dark: #000000;
JSON
{
  "hex": "#31104a",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 274.138,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26026,
    "c": 0.10296,
    "h": 306.5
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#31104A
secondary
#558432
accent
#E74088
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #31104A

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

Preview Lab → · Contrast checker → · Palette generator →

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