#331356#331356

#331356 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.114 H 300.9°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#331356
RGBrgb(51, 19, 86)
HSLhsl(269, 64%, 21%)
HSVhsv(269, 78%, 34%)
CMYKcmyk(40.7%, 77.9%, 0%, 66.3%)
CIE-LABlab(14.63, 30.71, -34.26)
CIE-LCHlch(14.63, 46.01, 311.87°)
OKLaboklab(27.78% 0.0586 -0.0977)
OKLCHoklch(27.78% 0.114 300.9)
XYZxyz(3.2774, 1.8414, 8.9851)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331356 #365613
analogous
#131456 #331356 #541356
triadic
#331356 #563313 #135633
tetradic
#331356 #561314 #365613 #135654
square
#331356 #561314 #365613 #135654
split-complementary
#331356 #565413 #145613
monochromatic
#0F0619 #150824 #331356 #511E88 #6E29BA

Accessibility & contrast

On white

15.35
#331356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331356
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331356#FFFFFF#000000##FFFFFF
##3313561.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#2B2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331356;
/* rgb */ color: rgb(51, 19, 86);
/* oklch */ color: oklch(27.8% 0.114 300.9);
Tailwind
colors: {
  custom: {
    50: '#6f5486',
    500: '#331356',
    950: '#000000',
  },
}
SCSS
$custom: #331356;
$custom-light: #6f5486;
$custom-dark: #000000;
JSON
{
  "hex": "#331356",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 268.657,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27776,
    "c": 0.11392,
    "h": 300.9
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#331356
secondary
#648E36
accent
#E74198
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331356

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

Preview Lab → · Contrast checker → · Palette generator →

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