#311151#311151

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

Color values

HEX#311151
RGBrgb(49, 17, 81)
HSLhsl(270, 65%, 19%)
HSVhsv(270, 79%, 32%)
CMYKcmyk(39.5%, 79%, 0%, 68.2%)
CIE-LABlab(13.52, 29.93, -32.68)
CIE-LCHlch(13.52, 44.32, 312.48°)
OKLaboklab(26.78% 0.0587 -0.0931)
OKLCHoklch(26.78% 0.11 302.2)
XYZxyz(2.9519, 1.6479, 7.9456)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311151 #315111
analogous
#111151 #311151 #511151
triadic
#311151 #513111 #115131
tetradic
#311151 #511111 #315111 #115151
square
#311151 #511111 #315111 #115151
split-complementary
#311151 #515111 #115111
monochromatic
#0F0519 #12061E #311151 #501C84 #6E26B6

Accessibility & contrast

On white

15.79
#311151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311151
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311151#FFFFFF#000000##FFFFFF
##3111511.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2A2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311151;
/* rgb */ color: rgb(49, 17, 81);
/* oklch */ color: oklch(26.8% 0.110 302.2);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#311151',
    950: '#000000',
  },
}
SCSS
$custom: #311151;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#311151",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 270,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26784,
    "c": 0.11008,
    "h": 302.2
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#311151
secondary
#5F8A34
accent
#E84094
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311151

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

Preview Lab → · Contrast checker → · Palette generator →

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