#331051#331051

#331051 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.112 H 304.3°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#331051
RGBrgb(51, 16, 81)
HSLhsl(272, 67%, 19%)
HSVhsv(272, 80%, 32%)
CMYKcmyk(37%, 80.2%, 0%, 68.2%)
CIE-LABlab(13.64, 30.87, -32.47)
CIE-LCHlch(13.64, 44.80, 313.55°)
OKLaboklab(26.94% 0.063 -0.0924)
OKLCHoklch(26.94% 0.112 304.3)
XYZxyz(3.0354, 1.6685, 7.9451)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331051 #2E5110
analogous
#131051 #331051 #51104F
triadic
#331051 #513310 #105133
tetradic
#331051 #511310 #2E5110 #104F51
square
#331051 #511310 #2E5110 #104F51
split-complementary
#331051 #4F5110 #105113
monochromatic
#10051A #13061E #331051 #531A84 #7324B7

Accessibility & contrast

On white

15.75
#331051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331051
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331051#FFFFFF#000000##FFFFFF
##3310511.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#2D202F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331051;
/* rgb */ color: rgb(51, 16, 81);
/* oklch */ color: oklch(26.9% 0.112 304.3);
Tailwind
colors: {
  custom: {
    50: '#6e5282',
    500: '#331051',
    950: '#000000',
  },
}
SCSS
$custom: #331051;
$custom-light: #6e5282;
$custom-dark: #000000;
JSON
{
  "hex": "#331051",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 272.308,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26935,
    "c": 0.11188,
    "h": 304.3
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#331051
secondary
#5B8B32
accent
#EA3E8D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331051

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

Preview Lab → · Contrast checker → · Palette generator →

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