#31106A#31106A

#31106A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.141 H 291.6°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#31106A
RGBrgb(49, 16, 106)
HSLhsl(262, 74%, 24%)
HSVhsv(262, 85%, 42%)
CMYKcmyk(53.8%, 84.9%, 0%, 58.4%)
CIE-LABlab(15.82, 37.52, -45.64)
CIE-LCHlch(15.82, 59.09, 309.42°)
OKLaboklab(29.15% 0.052 -0.1312)
OKLCHoklch(29.15% 0.141 291.6)
XYZxyz(4.0527, 2.0640, 13.8177)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31106A #496A10
analogous
#101C6A #31106A #5E106A
triadic
#31106A #6A3110 #106A31
tetradic
#31106A #6A101C #496A10 #106A5E
square
#31106A #6A101C #496A10 #106A5E
split-complementary
#31106A #6A5E10 #1C6A10
monochromatic
#0C041B #180835 #31106A #4A189F #6220D4

Accessibility & contrast

On white

14.86
#31106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#31106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31106A
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31106A#FFFFFF#000000##FFFFFF
##31106A1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#1D2B3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31106a;
/* rgb */ color: rgb(49, 16, 106);
/* oklch */ color: oklch(29.1% 0.141 291.6);
Tailwind
colors: {
  custom: {
    50: '#715396',
    500: '#31106a',
    950: '#000000',
  },
}
SCSS
$custom: #31106a;
$custom-light: #715396;
$custom-dark: #000000;
JSON
{
  "hex": "#31106a",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 262,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2915,
    "c": 0.14107,
    "h": 291.6
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#31106A
secondary
#7AA234
accent
#F037AD
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31106A

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

Preview Lab → · Contrast checker → · Palette generator →

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