#311152#311152

#311152 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.111 H 301.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#311152
RGBrgb(49, 17, 82)
HSLhsl(270, 66%, 19%)
HSVhsv(270, 79%, 32%)
CMYKcmyk(40.2%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.61, 30.21, -33.22)
CIE-LCHlch(13.61, 44.90, 312.28°)
OKLaboklab(26.88% 0.0584 -0.0947)
OKLCHoklch(26.88% 0.111 301.7)
XYZxyz(2.9897, 1.6630, 8.1445)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311152 #325211
analogous
#111252 #311152 #521152
triadic
#311152 #523111 #115231
tetradic
#311152 #521112 #325211 #115252
square
#311152 #521112 #325211 #115252
split-complementary
#311152 #525211 #125211
monochromatic
#0F0519 #13061F #311152 #4F1C85 #6E26B7

Accessibility & contrast

On white

15.76
#311152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311152
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311152#FFFFFF#000000##FFFFFF
##3111521.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311152;
/* rgb */ color: rgb(49, 17, 82);
/* oklch */ color: oklch(26.9% 0.111 301.7);
Tailwind
colors: {
  custom: {
    50: '#6d5283',
    500: '#311152',
    950: '#000000',
  },
}
SCSS
$custom: #311152;
$custom-light: #6d5283;
$custom-dark: #000000;
JSON
{
  "hex": "#311152",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 269.538,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26875,
    "c": 0.1113,
    "h": 301.7
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#311152
secondary
#608B34
accent
#E93F95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311152

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

Preview Lab → · Contrast checker → · Palette generator →

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