#331771#331771

#331771 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.142 H 289.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#331771
RGBrgb(51, 23, 113)
HSLhsl(259, 66%, 27%)
HSVhsv(259, 80%, 44%)
CMYKcmyk(54.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.96, 36.52, -46.68)
CIE-LCHlch(17.96, 59.27, 308.04°)
OKLaboklab(30.92% 0.0475 -0.1342)
OKLCHoklch(30.92% 0.142 289.5)
XYZxyz(4.6514, 2.5086, 15.8587)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331771 #557117
analogous
#172871 #331771 #601771
triadic
#331771 #713317 #177133
tetradic
#331771 #711728 #557117 #177160
square
#331771 #711728 #557117 #177160
split-complementary
#331771 #716017 #287117
monochromatic
#0B0519 #1C0D3E #331771 #4A21A4 #622ED4

Accessibility & contrast

On white

13.98
#331771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331771
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331771#FFFFFF#000000##FFFFFF
##3317711.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#1C3043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331771;
/* rgb */ color: rgb(51, 23, 113);
/* oklch */ color: oklch(30.9% 0.142 289.5);
Tailwind
colors: {
  custom: {
    50: '#72589b',
    500: '#331771',
    950: '#000000',
  },
}
SCSS
$custom: #331771;
$custom-light: #72589b;
$custom-dark: #000000;
JSON
{
  "hex": "#331771",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 258.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30916,
    "c": 0.14234,
    "h": 289.5
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#331771
secondary
#86A73D
accent
#E93FB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331771

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

Preview Lab → · Contrast checker → · Palette generator →

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