#331251#331251

#331251 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.109 H 303.8°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#331251
RGBrgb(51, 18, 81)
HSLhsl(271, 64%, 19%)
HSVhsv(271, 78%, 32%)
CMYKcmyk(37%, 77.8%, 0%, 68.2%)
CIE-LABlab(14.00, 29.84, -31.88)
CIE-LCHlch(14.00, 43.67, 313.11°)
OKLaboklab(27.19% 0.0608 -0.0907)
OKLCHoklch(27.19% 0.109 303.8)
XYZxyz(3.0664, 1.7305, 7.9555)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331251 #305112
analogous
#141251 #331251 #511250
triadic
#331251 #513312 #125133
tetradic
#331251 #511412 #305112 #125051
square
#331251 #511412 #305112 #125051
split-complementary
#331251 #505112 #125114
monochromatic
#100619 #13071F #331251 #531D83 #7228B5

Accessibility & contrast

On white

15.60
#331251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331251
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331251#FFFFFF#000000##FFFFFF
##3312511.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#2D2130
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331251;
/* rgb */ color: rgb(51, 18, 81);
/* oklch */ color: oklch(27.2% 0.109 303.8);
Tailwind
colors: {
  custom: {
    50: '#6e5382',
    500: '#331251',
    950: '#000000',
  },
}
SCSS
$custom: #331251;
$custom-light: #6e5382;
$custom-dark: #000000;
JSON
{
  "hex": "#331251",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 271.429,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27193,
    "c": 0.10918,
    "h": 303.8
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#331251
secondary
#5D8A35
accent
#E74190
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331251

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

Preview Lab → · Contrast checker → · Palette generator →

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