#331550#331550

#331550 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.104 H 303.6°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#331550
RGBrgb(51, 21, 80)
HSLhsl(271, 58%, 20%)
HSVhsv(271, 74%, 31%)
CMYKcmyk(36.3%, 73.7%, 0%, 68.6%)
CIE-LABlab(14.51, 27.92, -30.38)
CIE-LCHlch(14.51, 41.26, 312.59°)
OKLaboklab(27.53% 0.0573 -0.0863)
OKLCHoklch(27.53% 0.104 303.6)
XYZxyz(3.0810, 1.8193, 7.7767)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331550 #325015
analogous
#151550 #331550 #501550
triadic
#331550 #503315 #155033
tetradic
#331550 #501515 #325015 #155050
square
#331550 #501515 #325015 #155050
split-complementary
#331550 #505015 #155015
monochromatic
#0F0618 #140820 #331550 #522280 #712EB1

Accessibility & contrast

On white

15.40
#331550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331550 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331550
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331550#FFFFFF#000000##FFFFFF
##3315501.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#01254F
Tritanopia (blue-blind)
#2D2230
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331550;
/* rgb */ color: rgb(51, 21, 80);
/* oklch */ color: oklch(27.5% 0.104 303.6);
Tailwind
colors: {
  custom: {
    50: '#6e5581',
    500: '#331550',
    950: '#000000',
  },
}
SCSS
$custom: #331550;
$custom-light: #6e5581;
$custom-dark: #000000;
JSON
{
  "hex": "#331550",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 270.508,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27526,
    "c": 0.10358,
    "h": 303.6
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#331550
secondary
#608839
accent
#E24693
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331550

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

Preview Lab → · Contrast checker → · Palette generator →

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