#331152#331152

#331152 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.112 H 303.5°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#331152
RGBrgb(51, 17, 82)
HSLhsl(271, 66%, 19%)
HSVhsv(271, 79%, 32%)
CMYKcmyk(37.8%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.91, 30.64, -32.72)
CIE-LCHlch(13.91, 44.82, 313.12°)
OKLaboklab(27.15% 0.0617 -0.0932)
OKLCHoklch(27.15% 0.112 303.5)
XYZxyz(3.0883, 1.7139, 8.1491)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331152 #305211
analogous
#131152 #331152 #521151
triadic
#331152 #523311 #115233
tetradic
#331152 #521311 #305211 #115152
square
#331152 #521311 #305211 #115152
split-complementary
#331152 #515211 #115213
monochromatic
#100519 #13061F #331152 #531C85 #7226B7

Accessibility & contrast

On white

15.64
#331152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331152
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331152#FFFFFF#000000##FFFFFF
##3311521.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2D2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331152;
/* rgb */ color: rgb(51, 17, 82);
/* oklch */ color: oklch(27.2% 0.112 303.5);
Tailwind
colors: {
  custom: {
    50: '#6e5383',
    500: '#331152',
    950: '#000000',
  },
}
SCSS
$custom: #331152;
$custom-light: #6e5383;
$custom-dark: #000000;
JSON
{
  "hex": "#331152",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 271.385,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27152,
    "c": 0.11175,
    "h": 303.5
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#331152
secondary
#5D8B34
accent
#E93F90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #331152

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

Preview Lab → · Contrast checker → · Palette generator →

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