#31135C#31135C

#31135C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.121 H 296.4°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#31135C
RGBrgb(49, 19, 92)
HSLhsl(265, 66%, 22%)
HSVhsv(265, 79%, 36%)
CMYKcmyk(46.7%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.91, 32.03, -37.86)
CIE-LCHlch(14.91, 49.59, 310.23°)
OKLaboklab(28.08% 0.0538 -0.1084)
OKLCHoklch(28.08% 0.121 296.4)
XYZxyz(3.4308, 1.8913, 10.3074)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31135C #3E5C13
analogous
#13195C #31135C #56135C
triadic
#31135C #5C3113 #135C31
tetradic
#31135C #5C1319 #3E5C13 #135C56
square
#31135C #5C1319 #3E5C13 #135C56
split-complementary
#31135C #5C5613 #195C13
monochromatic
#0E0519 #160929 #31135C #4C1D8F #6728C1

Accessibility & contrast

On white

15.24
#31135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#31135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31135C
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31135C#FFFFFF#000000##FFFFFF
##31135C1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#252636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31135c;
/* rgb */ color: rgb(49, 19, 92);
/* oklch */ color: oklch(28.1% 0.121 296.4);
Tailwind
colors: {
  custom: {
    50: '#6e548b',
    500: '#31135c',
    950: '#000000',
  },
}
SCSS
$custom: #31135c;
$custom-light: #6e548b;
$custom-dark: #000000;
JSON
{
  "hex": "#31135c",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 264.658,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2808,
    "c": 0.12102,
    "h": 296.4
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#31135C
secondary
#6E9437
accent
#E93FA3
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31135C

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

Preview Lab → · Contrast checker → · Palette generator →

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