#331471#331471

#331471 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.145 H 290.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#331471
RGBrgb(51, 20, 113)
HSLhsl(260, 70%, 26%)
HSVhsv(260, 82%, 44%)
CMYKcmyk(54.9%, 82.3%, 0%, 55.7%)
CIE-LABlab(17.44, 38.00, -47.53)
CIE-LCHlch(17.44, 60.85, 308.64°)
OKLaboklab(30.56% 0.0499 -0.1366)
OKLCHoklch(30.56% 0.145 290.1)
XYZxyz(4.5952, 2.3962, 15.8400)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331471 #527114
analogous
#142371 #331471 #611471
triadic
#331471 #713314 #147133
tetradic
#331471 #711423 #527114 #147161
square
#331471 #711423 #527114 #147161
split-complementary
#331471 #716114 #237114
monochromatic
#0C051A #1C0B3D #331471 #4A1DA5 #6227D9

Accessibility & contrast

On white

14.20
#331471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331471
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331471#FFFFFF#000000##FFFFFF
##3314711.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#1C2F42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331471;
/* rgb */ color: rgb(51, 20, 113);
/* oklch */ color: oklch(30.6% 0.145 290.1);
Tailwind
colors: {
  custom: {
    50: '#73569b',
    500: '#331471',
    950: '#000000',
  },
}
SCSS
$custom: #331471;
$custom-light: #73569b;
$custom-dark: #000000;
JSON
{
  "hex": "#331471",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 260,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30557,
    "c": 0.14546,
    "h": 290.1
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#331471
secondary
#83A739
accent
#ED3BB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331471

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

Preview Lab → · Contrast checker → · Palette generator →

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