#331264#331264

#331264 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.132 H 295.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#331264
RGBrgb(51, 18, 100)
HSLhsl(264, 69%, 23%)
HSVhsv(264, 82%, 39%)
CMYKcmyk(49%, 82%, 0%, 60.8%)
CIE-LABlab(15.78, 35.19, -41.75)
CIE-LCHlch(15.78, 54.60, 310.13°)
OKLaboklab(28.99% 0.0558 -0.1197)
OKLCHoklch(28.99% 0.132 295)
XYZxyz(3.8812, 2.0564, 12.2466)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331264 #436412
analogous
#121A64 #331264 #5C1264
triadic
#331264 #643312 #126433
tetradic
#331264 #64121A #436412 #12645C
square
#331264 #64121A #436412 #12645C
split-complementary
#331264 #645C12 #1A6412
monochromatic
#0D051A #190930 #331264 #4D1B98 #6825CC

Accessibility & contrast

On white

14.88
#331264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331264
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331264#FFFFFF#000000##FFFFFF
##3312641.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#25293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331264;
/* rgb */ color: rgb(51, 18, 100);
/* oklch */ color: oklch(29.0% 0.132 295.0);
Tailwind
colors: {
  custom: {
    50: '#715491',
    500: '#331264',
    950: '#000000',
  },
}
SCSS
$custom: #331264;
$custom-light: #715491;
$custom-dark: #000000;
JSON
{
  "hex": "#331264",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 264.146,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28994,
    "c": 0.13205,
    "h": 295
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#331264
secondary
#739C36
accent
#EC3BA5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331264

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

Preview Lab → · Contrast checker → · Palette generator →

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