#31104C#31104C

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

Color values

HEX#31104C
RGBrgb(49, 16, 76)
HSLhsl(273, 65%, 18%)
HSVhsv(273, 79%, 30%)
CMYKcmyk(35.5%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.89, 29.07, -30.26)
CIE-LCHlch(12.89, 41.96, 313.85°)
OKLaboklab(26.2% 0.0609 -0.086)
OKLCHoklch(26.2% 0.105 305.3)
XYZxyz(2.7561, 1.5454, 6.9892)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31104C #2B4C10
analogous
#13104C #31104C #4C1049
triadic
#31104C #4C3110 #104C31
tetradic
#31104C #4C1310 #2B4C10 #10494C
square
#31104C #4C1310 #2B4C10 #10494C
split-complementary
#31104C #494C10 #104C13
monochromatic
#100519 #100519 #31104C #521B7F #7225B1

Accessibility & contrast

On white

16.04
#31104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#31104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31104C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31104C#FFFFFF#000000##FFFFFF
##31104C1.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)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2C1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31104c;
/* rgb */ color: rgb(49, 16, 76);
/* oklch */ color: oklch(26.2% 0.105 305.3);
Tailwind
colors: {
  custom: {
    50: '#6c517e',
    500: '#31104c',
    950: '#000000',
  },
}
SCSS
$custom: #31104c;
$custom-light: #6c517e;
$custom-dark: #000000;
JSON
{
  "hex": "#31104c",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 273,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26202,
    "c": 0.10538,
    "h": 305.3
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#31104C
secondary
#588632
accent
#E8408B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31104C

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

Preview Lab → · Contrast checker → · Palette generator →

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