#31136E#31136E

#31136E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.143 H 289.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#31136E
RGBrgb(49, 19, 110)
HSLhsl(260, 71%, 25%)
HSVhsv(260, 83%, 43%)
CMYKcmyk(55.5%, 82.7%, 0%, 56.9%)
CIE-LABlab(16.72, 37.31, -46.78)
CIE-LCHlch(16.72, 59.83, 308.58°)
OKLaboklab(29.9% 0.0483 -0.1345)
OKLCHoklch(29.9% 0.143 289.8)
XYZxyz(4.3132, 2.2443, 14.9548)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31136E #506E13
analogous
#13236E #31136E #5E136E
triadic
#31136E #6E3113 #136E31
tetradic
#31136E #6E1323 #506E13 #136E5E
square
#31136E #6E1323 #506E13 #136E5E
split-complementary
#31136E #6E5E13 #236E13
monochromatic
#0C051A #1A0A3A #31136E #481CA2 #5F25D6

Accessibility & contrast

On white

14.49
#31136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31136E
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31136E#FFFFFF#000000##FFFFFF
##31136E1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#1A2D40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #31136e;
/* rgb */ color: rgb(49, 19, 110);
/* oklch */ color: oklch(29.9% 0.143 289.8);
Tailwind
colors: {
  custom: {
    50: '#715599',
    500: '#31136e',
    950: '#000000',
  },
}
SCSS
$custom: #31136e;
$custom-light: #715599;
$custom-dark: #000000;
JSON
{
  "hex": "#31136e",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 259.78,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29903,
    "c": 0.14291,
    "h": 289.8
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#31136E
secondary
#81A538
accent
#ED3AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31136E

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

Preview Lab → · Contrast checker → · Palette generator →

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