#331353#331353

#331353 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.110 H 302.5°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#331353
RGBrgb(51, 19, 83)
HSLhsl(270, 63%, 20%)
HSVhsv(270, 77%, 33%)
CMYKcmyk(38.6%, 77.1%, 0%, 67.5%)
CIE-LABlab(14.37, 29.87, -32.65)
CIE-LCHlch(14.37, 44.25, 312.45°)
OKLaboklab(27.51% 0.0592 -0.093)
OKLCHoklch(27.51% 0.11 302.5)
XYZxyz(3.1591, 1.7941, 8.3618)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331353 #335313
analogous
#131353 #331353 #531353
triadic
#331353 #533313 #135333
tetradic
#331353 #531313 #335313 #135353
square
#331353 #531313 #335313 #135353
split-complementary
#331353 #535313 #135313
monochromatic
#0F0619 #140821 #331353 #521E85 #702AB7

Accessibility & contrast

On white

15.45
#331353 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331353
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331353#FFFFFF#000000##FFFFFF
##3313531.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#2C2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331353;
/* rgb */ color: rgb(51, 19, 83);
/* oklch */ color: oklch(27.5% 0.110 302.5);
Tailwind
colors: {
  custom: {
    50: '#6e5484',
    500: '#331353',
    950: '#000000',
  },
}
SCSS
$custom: #331353;
$custom-light: #6e5484;
$custom-dark: #000000;
JSON
{
  "hex": "#331353",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 270,
    "s": 62.745,
    "l": 20
  },
  "oklch": {
    "l": 0.27505,
    "c": 0.11024,
    "h": 302.5
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#331353
secondary
#618B36
accent
#E64294
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331353

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

Preview Lab → · Contrast checker → · Palette generator →

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