#331151#331151

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

Color values

HEX#331151
RGBrgb(51, 17, 81)
HSLhsl(272, 65%, 19%)
HSVhsv(272, 79%, 32%)
CMYKcmyk(37%, 79%, 0%, 68.2%)
CIE-LABlab(13.82, 30.36, -32.18)
CIE-LCHlch(13.82, 44.24, 313.34°)
OKLaboklab(27.06% 0.0619 -0.0916)
OKLCHoklch(27.06% 0.111 304.1)
XYZxyz(3.0506, 1.6988, 7.9502)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331151 #2F5111
analogous
#131151 #331151 #51114F
triadic
#331151 #513311 #115133
tetradic
#331151 #511311 #2F5111 #114F51
square
#331151 #511311 #2F5111 #114F51
split-complementary
#331151 #4F5111 #115113
monochromatic
#100519 #13061E #331151 #531C84 #7326B6

Accessibility & contrast

On white

15.67
#331151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331151
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331151#FFFFFF#000000##FFFFFF
##3311511.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331151;
/* rgb */ color: rgb(51, 17, 81);
/* oklch */ color: oklch(27.1% 0.111 304.1);
Tailwind
colors: {
  custom: {
    50: '#6e5382',
    500: '#331151',
    950: '#000000',
  },
}
SCSS
$custom: #331151;
$custom-light: #6e5382;
$custom-dark: #000000;
JSON
{
  "hex": "#331151",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 271.875,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27062,
    "c": 0.11055,
    "h": 304.1
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#331151
secondary
#5C8A34
accent
#E8408F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331151

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

Preview Lab → · Contrast checker → · Palette generator →

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