#311050#311050

#311050 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.110 H 303.0°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#311050
RGBrgb(49, 16, 80)
HSLhsl(271, 67%, 19%)
HSVhsv(271, 80%, 31%)
CMYKcmyk(38.8%, 80%, 0%, 68.6%)
CIE-LABlab(13.25, 30.17, -32.44)
CIE-LCHlch(13.25, 44.30, 312.92°)
OKLaboklab(26.56% 0.06 -0.0924)
OKLCHoklch(26.56% 0.11 303)
XYZxyz(2.8995, 1.6027, 7.7445)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311050 #2F5010
analogous
#111050 #311050 #50104F
triadic
#311050 #503110 #105031
tetradic
#311050 #501110 #2F5010 #104F50
square
#311050 #501110 #2F5010 #104F50
split-complementary
#311050 #4F5010 #105011
monochromatic
#10051A #12061D #311050 #501A83 #6F24B6

Accessibility & contrast

On white

15.90
#311050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311050
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311050#FFFFFF#000000##FFFFFF
##3110501.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2B202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311050;
/* rgb */ color: rgb(49, 16, 80);
/* oklch */ color: oklch(26.6% 0.110 303.0);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#311050',
    950: '#000000',
  },
}
SCSS
$custom: #311050;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#311050",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 270.938,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26563,
    "c": 0.11019,
    "h": 303
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#311050
secondary
#5D8A32
accent
#EA3E91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311050

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

Preview Lab → · Contrast checker → · Palette generator →

#311050 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva