#311350#311350

#311350 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.106 H 302.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#311350
RGBrgb(49, 19, 80)
HSLhsl(270, 62%, 19%)
HSVhsv(270, 76%, 31%)
CMYKcmyk(38.8%, 76.3%, 0%, 68.6%)
CIE-LABlab(13.81, 28.57, -31.52)
CIE-LCHlch(13.81, 42.54, 312.19°)
OKLaboklab(26.97% 0.0565 -0.0897)
OKLCHoklch(26.97% 0.106 302.2)
XYZxyz(2.9471, 1.6979, 7.7603)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311350 #325013
analogous
#131450 #311350 #501350
triadic
#311350 #503113 #135031
tetradic
#311350 #501314 #325013 #135050
square
#311350 #501314 #325013 #135050
split-complementary
#311350 #505013 #145013
monochromatic
#0F0619 #13071F #311350 #4F1F81 #6E2AB3

Accessibility & contrast

On white

15.68
#311350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311350 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311350
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311350#FFFFFF#000000##FFFFFF
##3113501.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2B2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311350;
/* rgb */ color: rgb(49, 19, 80);
/* oklch */ color: oklch(27.0% 0.106 302.2);
Tailwind
colors: {
  custom: {
    50: '#6c5382',
    500: '#311350',
    950: '#000000',
  },
}
SCSS
$custom: #311350;
$custom-light: #6c5382;
$custom-dark: #000000;
JSON
{
  "hex": "#311350",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 269.508,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26966,
    "c": 0.10606,
    "h": 302.2
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#311350
secondary
#608936
accent
#E54395
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311350

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

Preview Lab → · Contrast checker → · Palette generator →

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