#331352#331352

#331352 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.109 H 303.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#331352
RGBrgb(51, 19, 82)
HSLhsl(270, 62%, 20%)
HSVhsv(270, 77%, 32%)
CMYKcmyk(37.8%, 76.8%, 0%, 67.8%)
CIE-LABlab(14.28, 29.59, -32.11)
CIE-LCHlch(14.28, 43.67, 312.66°)
OKLaboklab(27.42% 0.0594 -0.0914)
OKLCHoklch(27.42% 0.109 303)
XYZxyz(3.1207, 1.7787, 8.1599)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331352 #325213
analogous
#131352 #331352 #521352
triadic
#331352 #523313 #135233
tetradic
#331352 #521313 #325213 #135252
square
#331352 #521313 #325213 #135252
split-complementary
#331352 #525213 #135213
monochromatic
#0F0619 #140720 #331352 #521F84 #712AB5

Accessibility & contrast

On white

15.49
#331352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331352
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331352#FFFFFF#000000##FFFFFF
##3313521.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2D2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331352;
/* rgb */ color: rgb(51, 19, 82);
/* oklch */ color: oklch(27.4% 0.109 303.0);
Tailwind
colors: {
  custom: {
    50: '#6e5483',
    500: '#331352',
    950: '#000000',
  },
}
SCSS
$custom: #331352;
$custom-light: #6e5483;
$custom-dark: #000000;
JSON
{
  "hex": "#331352",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 270.476,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27416,
    "c": 0.10901,
    "h": 303
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#331352
secondary
#608A36
accent
#E54293
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331352

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

Preview Lab → · Contrast checker → · Palette generator →

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