#31156D#31156D

#31156D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.140 H 289.7°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#31156D
RGBrgb(49, 21, 109)
HSLhsl(259, 68%, 25%)
HSVhsv(259, 81%, 43%)
CMYKcmyk(55%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.96, 36.03, -45.74)
CIE-LCHlch(16.96, 58.22, 308.23°)
OKLaboklab(30.04% 0.0471 -0.1315)
OKLCHoklch(30.04% 0.14 289.7)
XYZxyz(4.2943, 2.2932, 14.6814)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31156D #516D15
analogous
#15256D #31156D #5D156D
triadic
#31156D #6D3115 #156D31
tetradic
#31156D #6D1525 #516D15 #156D5D
square
#31156D #6D1525 #516D15 #156D5D
split-complementary
#31156D #6D5D15 #256D15
monochromatic
#0C051A #1A0B3A #31156D #481FA0 #5F29D4

Accessibility & contrast

On white

14.40
#31156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#31156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31156D
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31156D#FFFFFF#000000##FFFFFF
##31156D1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#1B2E40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31156d;
/* rgb */ color: rgb(49, 21, 109);
/* oklch */ color: oklch(30.0% 0.140 289.7);
Tailwind
colors: {
  custom: {
    50: '#715698',
    500: '#31156d',
    950: '#000000',
  },
}
SCSS
$custom: #31156d;
$custom-light: #715698;
$custom-dark: #000000;
JSON
{
  "hex": "#31156d",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 259.091,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30036,
    "c": 0.13964,
    "h": 289.7
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#31156D
secondary
#82A33A
accent
#EB3DB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31156D

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

Preview Lab → · Contrast checker → · Palette generator →

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