#331052#331052

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

Color values

HEX#331052
RGBrgb(51, 16, 82)
HSLhsl(272, 67%, 19%)
HSVhsv(272, 80%, 32%)
CMYKcmyk(37.8%, 80.5%, 0%, 67.8%)
CIE-LABlab(13.73, 31.14, -33.01)
CIE-LCHlch(13.73, 45.38, 313.33°)
OKLaboklab(27.03% 0.0628 -0.094)
OKLCHoklch(27.03% 0.113 303.7)
XYZxyz(3.0732, 1.6836, 8.1441)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331052 #2F5210
analogous
#121052 #331052 #521050
triadic
#331052 #523310 #105233
tetradic
#331052 #521210 #2F5210 #105052
square
#331052 #521210 #2F5210 #105052
split-complementary
#331052 #505210 #105212
monochromatic
#10051A #13061F #331052 #531A85 #7324B8

Accessibility & contrast

On white

15.71
#331052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331052
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331052#FFFFFF#000000##FFFFFF
##3310521.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331052;
/* rgb */ color: rgb(51, 16, 82);
/* oklch */ color: oklch(27.0% 0.113 303.7);
Tailwind
colors: {
  custom: {
    50: '#6e5283',
    500: '#331052',
    950: '#000000',
  },
}
SCSS
$custom: #331052;
$custom-light: #6e5283;
$custom-dark: #000000;
JSON
{
  "hex": "#331052",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 271.818,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27026,
    "c": 0.11306,
    "h": 303.7
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#331052
secondary
#5C8C32
accent
#EA3E8F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #331052

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

Preview Lab → · Contrast checker → · Palette generator →

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