#31135E#31135E

#31135E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.123 H 295.6°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#31135E
RGBrgb(49, 19, 94)
HSLhsl(264, 66%, 22%)
HSVhsv(264, 80%, 37%)
CMYKcmyk(47.9%, 79.8%, 0%, 63.1%)
CIE-LABlab(15.10, 32.61, -38.89)
CIE-LCHlch(15.10, 50.75, 309.98°)
OKLaboklab(28.27% 0.0533 -0.1114)
OKLCHoklch(28.27% 0.123 295.6)
XYZxyz(3.5193, 1.9268, 10.7740)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31135E #405E13
analogous
#131B5E #31135E #57135E
triadic
#31135E #5E3113 #135E31
tetradic
#31135E #5E131B #405E13 #135E57
square
#31135E #5E131B #405E13 #135E57
split-complementary
#31135E #5E5713 #1B5E13
monochromatic
#0D0519 #16092B #31135E #4C1D91 #6628C4

Accessibility & contrast

On white

15.16
#31135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31135E
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31135E#FFFFFF#000000##FFFFFF
##31135E1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#242737
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31135e;
/* rgb */ color: rgb(49, 19, 94);
/* oklch */ color: oklch(28.3% 0.123 295.6);
Tailwind
colors: {
  custom: {
    50: '#6e548c',
    500: '#31135e',
    950: '#000000',
  },
}
SCSS
$custom: #31135e;
$custom-light: #6e548c;
$custom-dark: #000000;
JSON
{
  "hex": "#31135e",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 264,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28274,
    "c": 0.12349,
    "h": 295.6
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#31135E
secondary
#709637
accent
#E93FA5
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31135E

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

Preview Lab → · Contrast checker → · Palette generator →

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