#331346#331346

#331346 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.094 H 310.4°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#331346
RGBrgb(51, 19, 70)
HSLhsl(278, 57%, 17%)
HSVhsv(278, 73%, 27%)
CMYKcmyk(27.1%, 72.9%, 0%, 72.5%)
CIE-LABlab(13.30, 26.32, -25.43)
CIE-LCHlch(13.30, 36.60, 316.00°)
OKLaboklab(26.41% 0.061 -0.0717)
OKLCHoklch(26.41% 0.094 310.4)
XYZxyz(2.7034, 1.6118, 5.9619)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331346 #264613
analogous
#1A1346 #331346 #46133F
triadic
#331346 #463313 #134633
tetradic
#331346 #461A13 #264613 #133F46
square
#331346 #461A13 #264613 #133F46
split-complementary
#331346 #3F4613 #13461A
monochromatic
#120718 #120718 #331346 #562076 #792DA6

Accessibility & contrast

On white

15.88
#331346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#331346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331346
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331346#FFFFFF#000000##FFFFFF
##3313461.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#0C2345
Tritanopia (blue-blind)
#301D2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331346;
/* rgb */ color: rgb(51, 19, 70);
/* oklch */ color: oklch(26.4% 0.094 310.4);
Tailwind
colors: {
  custom: {
    50: '#6d537a',
    500: '#331346',
    950: '#000000',
  },
}
SCSS
$custom: #331346;
$custom-light: #6d537a;
$custom-dark: #000000;
JSON
{
  "hex": "#331346",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 277.647,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26406,
    "c": 0.09418,
    "h": 310.4
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#331346
secondary
#517F36
accent
#E14780
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331346

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

Preview Lab → · Contrast checker → · Palette generator →

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