#31108D#31108D

#31108D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.1% C 0.181 H 282.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#31108D
RGBrgb(49, 16, 141)
HSLhsl(256, 80%, 31%)
HSVhsv(256, 89%, 55%)
CMYKcmyk(65.2%, 88.7%, 0%, 44.7%)
CIE-LABlab(19.83, 47.47, -61.40)
CIE-LCHlch(19.83, 77.61, 307.71°)
OKLaboklab(33.08% 0.0382 -0.1771)
OKLCHoklch(33.08% 0.181 282.2)
XYZxyz(6.2581, 2.9462, 25.4330)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31108D #6C8D10
analogous
#102D8D #31108D #6F108D
triadic
#31108D #8D3110 #108D31
tetradic
#31108D #8D102D #6C8D10 #108D6F
square
#31108D #8D102D #6C8D10 #108D6F
split-complementary
#31108D #8D6F10 #2D8D10
monochromatic
#0B041F #1E0A56 #31108D #4416C4 #6030E7

Accessibility & contrast

On white

13.21
#31108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#31108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31108D
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31108D#FFFFFF#000000##FFFFFF
##31108D1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #31108d;
/* rgb */ color: rgb(49, 16, 141);
/* oklch */ color: oklch(33.1% 0.181 282.2);
Tailwind
colors: {
  custom: {
    50: '#7756b0',
    500: '#31108d',
    950: '#000000',
  },
}
SCSS
$custom: #31108d;
$custom-light: #7756b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31108d",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 255.84,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3308,
    "c": 0.18117,
    "h": 282.2
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#31108D
secondary
#9DC237
accent
#F632C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #31108D

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

Preview Lab → · Contrast checker → · Palette generator →

#31108D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva