#31135B#31135B

#31135B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 296.8°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#31135B
RGBrgb(49, 19, 91)
HSLhsl(265, 65%, 22%)
HSVhsv(265, 79%, 36%)
CMYKcmyk(46.2%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.81, 31.73, -37.35)
CIE-LCHlch(14.81, 49.01, 310.35°)
OKLaboklab(27.98% 0.0541 -0.1069)
OKLCHoklch(27.98% 0.12 296.8)
XYZxyz(3.3873, 1.8740, 10.0787)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31135B #3D5B13
analogous
#13195B #31135B #55135B
triadic
#31135B #5B3113 #135B31
tetradic
#31135B #5B1319 #3D5B13 #135B55
square
#31135B #5B1319 #3D5B13 #135B55
split-complementary
#31135B #5B5513 #195B13
monochromatic
#0E0519 #160828 #31135B #4C1E8E #6828C0

Accessibility & contrast

On white

15.27
#31135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31135B
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31135B#FFFFFF#000000##FFFFFF
##31135B1.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#262636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31135b;
/* rgb */ color: rgb(49, 19, 91);
/* oklch */ color: oklch(28.0% 0.120 296.8);
Tailwind
colors: {
  custom: {
    50: '#6e548a',
    500: '#31135b',
    950: '#000000',
  },
}
SCSS
$custom: #31135b;
$custom-light: #6e548a;
$custom-dark: #000000;
JSON
{
  "hex": "#31135b",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 265,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27984,
    "c": 0.11978,
    "h": 296.8
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#31135B
secondary
#6D9337
accent
#E83FA2
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31135B

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

Preview Lab → · Contrast checker → · Palette generator →

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