#31116A#31116A

#31116A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.140 H 291.4°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#31116A
RGBrgb(49, 17, 106)
HSLhsl(262, 72%, 24%)
HSVhsv(262, 84%, 42%)
CMYKcmyk(53.8%, 84%, 0%, 58.4%)
CIE-LABlab(15.97, 37.07, -45.39)
CIE-LCHlch(15.97, 58.61, 309.24°)
OKLaboklab(29.26% 0.0512 -0.1304)
OKLCHoklch(29.26% 0.14 291.4)
XYZxyz(4.0678, 2.0943, 13.8228)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31116A #4A6A11
analogous
#111E6A #31116A #5E116A
triadic
#31116A #6A3111 #116A31
tetradic
#31116A #6A111E #4A6A11 #116A5E
square
#31116A #6A111E #4A6A11 #116A5E
split-complementary
#31116A #6A5E11 #1E6A11
monochromatic
#0C041A #190935 #31116A #49199F #6222D3

Accessibility & contrast

On white

14.80
#31116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#31116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31116A
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31116A#FFFFFF#000000##FFFFFF
##31116A1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#1D2B3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #31116a;
/* rgb */ color: rgb(49, 17, 106);
/* oklch */ color: oklch(29.3% 0.140 291.4);
Tailwind
colors: {
  custom: {
    50: '#715496',
    500: '#31116a',
    950: '#000000',
  },
}
SCSS
$custom: #31116a;
$custom-light: #715496;
$custom-dark: #000000;
JSON
{
  "hex": "#31116a",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 261.573,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29258,
    "c": 0.14011,
    "h": 291.4
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#31116A
secondary
#7BA235
accent
#EF39AE
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31116A

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

Preview Lab → · Contrast checker → · Palette generator →

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