#331351#331351

#331351 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.108 H 303.6°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#331351
RGBrgb(51, 19, 81)
HSLhsl(271, 62%, 20%)
HSVhsv(271, 77%, 32%)
CMYKcmyk(37%, 76.5%, 0%, 68.2%)
CIE-LABlab(14.19, 29.31, -31.57)
CIE-LCHlch(14.19, 43.08, 312.87°)
OKLaboklab(27.33% 0.0596 -0.0898)
OKLCHoklch(27.33% 0.108 303.6)
XYZxyz(3.0830, 1.7636, 7.9610)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331351 #315113
analogous
#141351 #331351 #511350
triadic
#331351 #513313 #135133
tetradic
#331351 #511413 #315113 #135051
square
#331351 #511413 #315113 #135051
split-complementary
#331351 #505113 #135114
monochromatic
#100619 #14071F #331351 #521F83 #712AB4

Accessibility & contrast

On white

15.52
#331351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331351
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331351#FFFFFF#000000##FFFFFF
##3313511.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#2D2230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331351;
/* rgb */ color: rgb(51, 19, 81);
/* oklch */ color: oklch(27.3% 0.108 303.6);
Tailwind
colors: {
  custom: {
    50: '#6e5482',
    500: '#331351',
    950: '#000000',
  },
}
SCSS
$custom: #331351;
$custom-light: #6e5482;
$custom-dark: #000000;
JSON
{
  "hex": "#331351",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 270.968,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27328,
    "c": 0.10778,
    "h": 303.6
  },
  "luminance": 0.01764
}

Semantic roles & 50–950 ramp

primary
#331351
secondary
#5F8A36
accent
#E54391
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331351

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

Preview Lab → · Contrast checker → · Palette generator →

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