#31136F#31136F

#31136F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.144 H 289.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#31136F
RGBrgb(49, 19, 111)
HSLhsl(260, 71%, 25%)
HSVhsv(260, 83%, 44%)
CMYKcmyk(55.9%, 82.9%, 0%, 56.5%)
CIE-LABlab(16.83, 37.60, -47.25)
CIE-LCHlch(16.83, 60.39, 308.51°)
OKLaboklab(30.01% 0.048 -0.1359)
OKLCHoklch(30.01% 0.144 289.4)
XYZxyz(4.3679, 2.2662, 15.2431)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31136F #516F13
analogous
#13236F #31136F #5F136F
triadic
#31136F #6F3113 #136F31
tetradic
#31136F #6F1323 #516F13 #136F5F
square
#31136F #6F1323 #516F13 #136F5F
split-complementary
#31136F #6F5F13 #236F13
monochromatic
#0C041A #1A0A3B #31136F #481CA3 #5F25D8

Accessibility & contrast

On white

14.45
#31136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#31136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31136F
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31136F#FFFFFF#000000##FFFFFF
##31136F1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#192E41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31136f;
/* rgb */ color: rgb(49, 19, 111);
/* oklch */ color: oklch(30.0% 0.144 289.4);
Tailwind
colors: {
  custom: {
    50: '#715599',
    500: '#31136f',
    950: '#000000',
  },
}
SCSS
$custom: #31136f;
$custom-light: #715599;
$custom-dark: #000000;
JSON
{
  "hex": "#31136f",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 259.565,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30009,
    "c": 0.14411,
    "h": 289.4
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#31136F
secondary
#82A638
accent
#EE3AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31136F

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

Preview Lab → · Contrast checker → · Palette generator →

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