#331376#331376

#331376 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 288.7°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#331376
RGBrgb(51, 19, 118)
HSLhsl(259, 72%, 27%)
HSVhsv(259, 84%, 46%)
CMYKcmyk(56.8%, 83.9%, 0%, 53.7%)
CIE-LABlab(17.82, 39.92, -50.14)
CIE-LCHlch(17.82, 64.09, 308.52°)
OKLaboklab(30.98% 0.0489 -0.1443)
OKLCHoklch(30.98% 0.152 288.7)
XYZxyz(4.8672, 2.4773, 17.3577)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331376 #567613
analogous
#132576 #331376 #651376
triadic
#331376 #763313 #137633
tetradic
#331376 #761325 #567613 #137665
square
#331376 #761325 #567613 #137665
split-complementary
#331376 #766513 #257613
monochromatic
#0B041A #1C0B41 #331376 #4A1BAB #6227DC

Accessibility & contrast

On white

14.04
#331376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331376
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331376#FFFFFF#000000##FFFFFF
##3313761.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#173145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331376;
/* rgb */ color: rgb(51, 19, 118);
/* oklch */ color: oklch(31.0% 0.152 288.7);
Tailwind
colors: {
  custom: {
    50: '#74569f',
    500: '#331376',
    950: '#000000',
  },
}
SCSS
$custom: #331376;
$custom-light: #74569f;
$custom-dark: #000000;
JSON
{
  "hex": "#331376",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 259.394,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30976,
    "c": 0.15232,
    "h": 288.7
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#331376
secondary
#87AC39
accent
#EF39B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331376

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

Preview Lab → · Contrast checker → · Palette generator →

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