#31105E#31105E

#31105E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.127 H 296.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#31105E
RGBrgb(49, 16, 94)
HSLhsl(265, 71%, 22%)
HSVhsv(265, 83%, 37%)
CMYKcmyk(47.9%, 83%, 0%, 63.1%)
CIE-LABlab(14.58, 34.10, -39.74)
CIE-LCHlch(14.58, 52.36, 310.63°)
OKLaboklab(27.91% 0.0561 -0.1139)
OKLCHoklch(27.91% 0.127 296.2)
XYZxyz(3.4718, 1.8316, 10.7581)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31105E #3D5E10
analogous
#10165E #31105E #58105E
triadic
#31105E #5E3110 #105E31
tetradic
#31105E #5E1016 #3D5E10 #105E58
square
#31105E #5E1016 #3D5E10 #105E58
split-complementary
#31105E #5E5810 #165E10
monochromatic
#0E041A #16072A #31105E #4C1992 #6822C7

Accessibility & contrast

On white

15.37
#31105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#31105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31105E
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31105E#FFFFFF#000000##FFFFFF
##31105E1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#252537
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31105e;
/* rgb */ color: rgb(49, 16, 94);
/* oklch */ color: oklch(27.9% 0.127 296.2);
Tailwind
colors: {
  custom: {
    50: '#6f538c',
    500: '#31105e',
    950: '#000000',
  },
}
SCSS
$custom: #31105e;
$custom-light: #6f538c;
$custom-dark: #000000;
JSON
{
  "hex": "#31105e",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 265.385,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2791,
    "c": 0.12693,
    "h": 296.2
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#31105E
secondary
#6D9733
accent
#EE3AA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31105E

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

Preview Lab → · Contrast checker → · Palette generator →

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