#331246#331246

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

Color values

HEX#331246
RGBrgb(51, 18, 70)
HSLhsl(278, 59%, 17%)
HSVhsv(278, 74%, 27%)
CMYKcmyk(27.1%, 74.3%, 0%, 72.5%)
CIE-LABlab(13.10, 26.88, -25.75)
CIE-LCHlch(13.10, 37.23, 316.23°)
OKLaboklab(26.26% 0.0624 -0.0727)
OKLCHoklch(26.26% 0.096 310.6)
XYZxyz(2.6868, 1.5787, 5.9563)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331246 #254612
analogous
#191246 #331246 #46123F
triadic
#331246 #463312 #124633
tetradic
#331246 #461912 #254612 #123F46
square
#331246 #461912 #254612 #123F46
split-complementary
#331246 #3F4612 #124619
monochromatic
#120618 #120618 #331246 #561F77 #7A2BA7

Accessibility & contrast

On white

15.96
#331246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331246
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331246#FFFFFF#000000##FFFFFF
##3312461.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#0B2245
Tritanopia (blue-blind)
#311D2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331246;
/* rgb */ color: rgb(51, 18, 70);
/* oklch */ color: oklch(26.3% 0.096 310.6);
Tailwind
colors: {
  custom: {
    50: '#6d537a',
    500: '#331246',
    950: '#000000',
  },
}
SCSS
$custom: #331246;
$custom-light: #6d537a;
$custom-dark: #000000;
JSON
{
  "hex": "#331246",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 278.077,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2626,
    "c": 0.09579,
    "h": 310.6
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#331246
secondary
#507F35
accent
#E2467F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331246

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

Preview Lab → · Contrast checker → · Palette generator →

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