#31105A#31105A

#31105A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.122 H 298.0°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#31105A
RGBrgb(49, 16, 90)
HSLhsl(267, 70%, 21%)
HSVhsv(267, 82%, 35%)
CMYKcmyk(45.6%, 82.2%, 0%, 64.7%)
CIE-LABlab(14.18, 32.96, -37.70)
CIE-LCHlch(14.18, 50.08, 311.16°)
OKLaboklab(27.51% 0.0573 -0.1079)
OKLCHoklch(27.51% 0.122 298)
XYZxyz(3.2969, 1.7617, 9.8372)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31105A #395A10
analogous
#10145A #31105A #56105A
triadic
#31105A #5A3110 #105A31
tetradic
#31105A #5A1014 #395A10 #105A56
square
#31105A #5A1014 #395A10 #105A56
split-complementary
#31105A #5A5610 #145A10
monochromatic
#0E051A #150726 #31105A #4D198E #6A22C2

Accessibility & contrast

On white

15.53
#31105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#31105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31105A
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31105A#FFFFFF#000000##FFFFFF
##31105A1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#272434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #31105a;
/* rgb */ color: rgb(49, 16, 90);
/* oklch */ color: oklch(27.5% 0.122 298.0);
Tailwind
colors: {
  custom: {
    50: '#6e5289',
    500: '#31105a',
    950: '#000000',
  },
}
SCSS
$custom: #31105a;
$custom-light: #6e5289;
$custom-dark: #000000;
JSON
{
  "hex": "#31105a",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 266.757,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27513,
    "c": 0.12218,
    "h": 298
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#31105A
secondary
#689333
accent
#ED3B9D
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31105A

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

Preview Lab → · Contrast checker → · Palette generator →

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