#331546#331546

#331546 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.091 H 309.8°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#331546
RGBrgb(51, 21, 70)
HSLhsl(277, 54%, 18%)
HSVhsv(277, 70%, 27%)
CMYKcmyk(27.1%, 70%, 0%, 72.5%)
CIE-LABlab(13.72, 25.17, -24.75)
CIE-LCHlch(13.72, 35.30, 315.48°)
OKLaboklab(26.71% 0.0582 -0.0698)
OKLCHoklch(26.71% 0.091 309.8)
XYZxyz(2.7387, 1.6824, 5.9736)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331546 #284615
analogous
#1B1546 #331546 #461540
triadic
#331546 #463315 #154633
tetradic
#331546 #461B15 #284615 #154046
square
#331546 #461B15 #284615 #154046
split-complementary
#331546 #404615 #15461B
monochromatic
#110718 #110718 #331546 #552375 #7831A4

Accessibility & contrast

On white

15.71
#331546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331546
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331546#FFFFFF#000000##FFFFFF
##3315461.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012248
Deuteranopia (green-blind)
#0F2345
Tritanopia (blue-blind)
#301F2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331546;
/* rgb */ color: rgb(51, 21, 70);
/* oklch */ color: oklch(26.7% 0.091 309.8);
Tailwind
colors: {
  custom: {
    50: '#6d547a',
    500: '#331546',
    950: '#000000',
  },
}
SCSS
$custom: #331546;
$custom-light: #6d547a;
$custom-dark: #000000;
JSON
{
  "hex": "#331546",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 276.735,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2671,
    "c": 0.09085,
    "h": 309.8
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#331546
secondary
#547E39
accent
#DD4B83
background
#F6F4F7
surface
#ECE8ED
border
#C7C4C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331546

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

Preview Lab → · Contrast checker → · Palette generator →

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