#31135A#31135A

#31135A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.119 H 297.3°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#31135A
RGBrgb(49, 19, 90)
HSLhsl(265, 65%, 21%)
HSVhsv(265, 79%, 35%)
CMYKcmyk(45.6%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.72, 31.44, -36.83)
CIE-LCHlch(14.72, 48.43, 310.49°)
OKLaboklab(27.89% 0.0544 -0.1053)
OKLCHoklch(27.89% 0.119 297.3)
XYZxyz(3.3445, 1.8568, 9.8531)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31135A #3C5A13
analogous
#13195A #31135A #55135A
triadic
#31135A #5A3113 #135A31
tetradic
#31135A #5A1319 #3C5A13 #135A55
square
#31135A #5A1319 #3C5A13 #135A55
split-complementary
#31135A #5A5513 #195A13
monochromatic
#0E0519 #150827 #31135A #4D1E8D #6828BF

Accessibility & contrast

On white

15.31
#31135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#31135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31135A
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31135A#FFFFFF#000000##FFFFFF
##31135A1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#262535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31135a;
/* rgb */ color: rgb(49, 19, 90);
/* oklch */ color: oklch(27.9% 0.119 297.3);
Tailwind
colors: {
  custom: {
    50: '#6e5489',
    500: '#31135a',
    950: '#000000',
  },
}
SCSS
$custom: #31135a;
$custom-light: #6e5489;
$custom-dark: #000000;
JSON
{
  "hex": "#31135a",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 265.352,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.11855,
    "h": 297.3
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#31135A
secondary
#6B9237
accent
#E840A1
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31135A

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

Preview Lab → · Contrast checker → · Palette generator →

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