#331071#331071

#331071 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.149 H 290.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#331071
RGBrgb(51, 16, 113)
HSLhsl(262, 75%, 25%)
HSVhsv(262, 86%, 44%)
CMYKcmyk(54.9%, 85.8%, 0%, 55.7%)
CIE-LABlab(16.83, 39.79, -48.54)
CIE-LCHlch(16.83, 62.76, 309.34°)
OKLaboklab(30.13% 0.0527 -0.1396)
OKLCHoklch(30.13% 0.149 290.7)
XYZxyz(4.5303, 2.2664, 15.8183)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331071 #4E7110
analogous
#101E71 #331071 #631071
triadic
#331071 #713310 #107133
tetradic
#331071 #71101E #4E7110 #107163
square
#331071 #71101E #4E7110 #107163
split-complementary
#331071 #716310 #1E7110
monochromatic
#0C041B #1B083B #331071 #4B18A7 #631FDC

Accessibility & contrast

On white

14.45
#331071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331071
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331071#FFFFFF#000000##FFFFFF
##3310711.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#1C2D42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331071;
/* rgb */ color: rgb(51, 16, 113);
/* oklch */ color: oklch(30.1% 0.149 290.7);
Tailwind
colors: {
  custom: {
    50: '#73549b',
    500: '#331071',
    950: '#000000',
  },
}
SCSS
$custom: #331071;
$custom-light: #73549b;
$custom-dark: #000000;
JSON
{
  "hex": "#331071",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 261.649,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30131,
    "c": 0.14919,
    "h": 290.7
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#331071
secondary
#7FA934
accent
#F236AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331071

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

Preview Lab → · Contrast checker → · Palette generator →

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