#31104B#31104B

#31104B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.104 H 305.9°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#31104B
RGBrgb(49, 16, 75)
HSLhsl(274, 65%, 18%)
HSVhsv(274, 79%, 29%)
CMYKcmyk(34.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.81, 28.80, -29.71)
CIE-LCHlch(12.81, 41.38, 314.11°)
OKLaboklab(26.11% 0.0611 -0.0844)
OKLCHoklch(26.11% 0.104 305.9)
XYZxyz(2.7216, 1.5316, 6.8075)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31104B #2A4B10
analogous
#13104B #31104B #4B1047
triadic
#31104B #4B3110 #104B31
tetradic
#31104B #4B1310 #2A4B10 #10474B
square
#31104B #4B1310 #2A4B10 #10474B
split-complementary
#31104B #474B10 #104B13
monochromatic
#100519 #100519 #31104B #521B7D #7326B0

Accessibility & contrast

On white

16.07
#31104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31104B
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31104B#FFFFFF#000000##FFFFFF
##31104B1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2C1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31104b;
/* rgb */ color: rgb(49, 16, 75);
/* oklch */ color: oklch(26.1% 0.104 305.9);
Tailwind
colors: {
  custom: {
    50: '#6c517e',
    500: '#31104b',
    950: '#000000',
  },
}
SCSS
$custom: #31104b;
$custom-light: #6c517e;
$custom-dark: #000000;
JSON
{
  "hex": "#31104b",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 273.559,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26113,
    "c": 0.10417,
    "h": 305.9
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#31104B
secondary
#568532
accent
#E8408A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31104B

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

Preview Lab → · Contrast checker → · Palette generator →

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