#31116F#31116F

#31116F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.146 H 289.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#31116F
RGBrgb(49, 17, 111)
HSLhsl(260, 73%, 25%)
HSVhsv(260, 85%, 44%)
CMYKcmyk(55.9%, 84.7%, 0%, 56.5%)
CIE-LABlab(16.51, 38.52, -47.77)
CIE-LCHlch(16.51, 61.37, 308.88°)
OKLaboklab(29.79% 0.0494 -0.1374)
OKLCHoklch(29.79% 0.146 289.8)
XYZxyz(4.3355, 2.2014, 15.2323)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31116F #4F6F11
analogous
#11206F #31116F #60116F
triadic
#31116F #6F3111 #116F31
tetradic
#31116F #6F1120 #4F6F11 #116F60
square
#31116F #6F1120 #4F6F11 #116F60
split-complementary
#31116F #6F6011 #206F11
monochromatic
#0C041B #1A093A #31116F #4819A4 #6021D9

Accessibility & contrast

On white

14.58
#31116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#31116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31116F
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31116F#FFFFFF#000000##FFFFFF
##31116F1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#192D41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #31116f;
/* rgb */ color: rgb(49, 17, 111);
/* oklch */ color: oklch(29.8% 0.146 289.8);
Tailwind
colors: {
  custom: {
    50: '#715499',
    500: '#31116f',
    950: '#000000',
  },
}
SCSS
$custom: #31116f;
$custom-light: #715499;
$custom-dark: #000000;
JSON
{
  "hex": "#31116f",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 260.426,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2979,
    "c": 0.146,
    "h": 289.8
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#31116F
secondary
#80A635
accent
#F038B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31116F

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

Preview Lab → · Contrast checker → · Palette generator →

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