#331247#331247

#331247 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.097 H 309.9°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#331247
RGBrgb(51, 18, 71)
HSLhsl(277, 60%, 17%)
HSVhsv(277, 75%, 28%)
CMYKcmyk(28.2%, 74.6%, 0%, 72.2%)
CIE-LABlab(13.18, 27.15, -26.32)
CIE-LCHlch(13.18, 37.81, 315.88°)
OKLaboklab(26.34% 0.0623 -0.0744)
OKLCHoklch(26.34% 0.097 309.9)
XYZxyz(2.7187, 1.5914, 6.1240)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331247 #264712
analogous
#181247 #331247 #471241
triadic
#331247 #473312 #124733
tetradic
#331247 #471812 #264712 #124147
square
#331247 #471812 #264712 #124147
split-complementary
#331247 #414712 #124718
monochromatic
#120618 #120618 #331247 #561E78 #792BA9

Accessibility & contrast

On white

15.93
#331247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331247
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331247#FFFFFF#000000##FFFFFF
##3312471.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331247;
/* rgb */ color: rgb(51, 18, 71);
/* oklch */ color: oklch(26.3% 0.097 309.9);
Tailwind
colors: {
  custom: {
    50: '#6d537a',
    500: '#331247',
    950: '#000000',
  },
}
SCSS
$custom: #331247;
$custom-light: #6d537a;
$custom-dark: #000000;
JSON
{
  "hex": "#331247",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 277.358,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26341,
    "c": 0.097,
    "h": 309.9
  },
  "luminance": 0.01591
}

Semantic roles & 50–950 ramp

primary
#331247
secondary
#518035
accent
#E34581
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331247

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

Preview Lab → · Contrast checker → · Palette generator →

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