#331371#331371

#331371 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.146 H 290.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#331371
RGBrgb(51, 19, 113)
HSLhsl(260, 71%, 26%)
HSVhsv(260, 83%, 44%)
CMYKcmyk(54.9%, 83.2%, 0%, 55.7%)
CIE-LABlab(17.28, 38.47, -47.79)
CIE-LCHlch(17.28, 61.35, 308.83°)
OKLaboklab(30.44% 0.0506 -0.1374)
OKLCHoklch(30.44% 0.146 290.2)
XYZxyz(4.5779, 2.3616, 15.8342)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331371 #517113
analogous
#132271 #331371 #621371
triadic
#331371 #713313 #137133
tetradic
#331371 #711322 #517113 #137162
square
#331371 #711322 #517113 #137162
split-complementary
#331371 #716213 #227113
monochromatic
#0C041A #1B0A3D #331371 #4B1CA5 #6225DA

Accessibility & contrast

On white

14.26
#331371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331371
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331371#FFFFFF#000000##FFFFFF
##3313711.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#1C2E42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331371;
/* rgb */ color: rgb(51, 19, 113);
/* oklch */ color: oklch(30.4% 0.146 290.2);
Tailwind
colors: {
  custom: {
    50: '#73559b',
    500: '#331371',
    950: '#000000',
  },
}
SCSS
$custom: #331371;
$custom-light: #73559b;
$custom-dark: #000000;
JSON
{
  "hex": "#331371",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 260.426,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30444,
    "c": 0.14644,
    "h": 290.2
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#331371
secondary
#82A838
accent
#EE3AB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331371

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

Preview Lab → · Contrast checker → · Palette generator →

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