#331349#331349

#331349 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.098 H 308.3°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#331349
RGBrgb(51, 19, 73)
HSLhsl(276, 59%, 18%)
HSVhsv(276, 74%, 29%)
CMYKcmyk(30.1%, 74%, 0%, 71.4%)
CIE-LABlab(13.54, 27.12, -27.13)
CIE-LCHlch(13.54, 38.37, 314.99°)
OKLaboklab(26.65% 0.0607 -0.0768)
OKLCHoklch(26.65% 0.098 308.3)
XYZxyz(2.8005, 1.6506, 6.4731)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331349 #294913
analogous
#181349 #331349 #491344
triadic
#331349 #493313 #134933
tetradic
#331349 #491813 #294913 #134449
square
#331349 #491813 #294913 #134449
split-complementary
#331349 #444913 #134918
monochromatic
#110618 #110618 #331349 #55207A #772CAA

Accessibility & contrast

On white

15.79
#331349 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331349 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331349
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331349#FFFFFF#000000##FFFFFF
##3313491.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#082348
Tritanopia (blue-blind)
#301E2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331349;
/* rgb */ color: rgb(51, 19, 73);
/* oklch */ color: oklch(26.6% 0.098 308.3);
Tailwind
colors: {
  custom: {
    50: '#6d537c',
    500: '#331349',
    950: '#000000',
  },
}
SCSS
$custom: #331349;
$custom-light: #6d537c;
$custom-dark: #000000;
JSON
{
  "hex": "#331349",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 73
  },
  "hsl": {
    "h": 275.556,
    "s": 58.696,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26648,
    "c": 0.09789,
    "h": 308.3
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#331349
secondary
#558236
accent
#E24685
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331349

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

Preview Lab → · Contrast checker → · Palette generator →

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