#331350#331350

#331350 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.107 H 304.1°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#331350
RGBrgb(51, 19, 80)
HSLhsl(271, 62%, 19%)
HSVhsv(271, 76%, 31%)
CMYKcmyk(36.3%, 76.3%, 0%, 68.6%)
CIE-LABlab(14.11, 29.03, -31.03)
CIE-LCHlch(14.11, 42.49, 313.10°)
OKLaboklab(27.24% 0.0598 -0.0882)
OKLCHoklch(27.24% 0.107 304.1)
XYZxyz(3.0458, 1.7487, 7.7649)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331350 #305013
analogous
#141350 #331350 #50134F
triadic
#331350 #503313 #135033
tetradic
#331350 #501413 #305013 #134F50
square
#331350 #501413 #305013 #134F50
split-complementary
#331350 #4F5013 #135014
monochromatic
#100619 #13071F #331350 #531F81 #722AB3

Accessibility & contrast

On white

15.56
#331350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331350 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331350
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331350#FFFFFF#000000##FFFFFF
##3313501.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#2D2130
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331350;
/* rgb */ color: rgb(51, 19, 80);
/* oklch */ color: oklch(27.2% 0.107 304.1);
Tailwind
colors: {
  custom: {
    50: '#6e5482',
    500: '#331350',
    950: '#000000',
  },
}
SCSS
$custom: #331350;
$custom-light: #6e5482;
$custom-dark: #000000;
JSON
{
  "hex": "#331350",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 271.475,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2724,
    "c": 0.10655,
    "h": 304.1
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#331350
secondary
#5D8936
accent
#E54390
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331350

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

Preview Lab → · Contrast checker → · Palette generator →

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