#331964#331964

#331964 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.124 H 293.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#331964
RGBrgb(51, 25, 100)
HSLhsl(261, 60%, 25%)
HSVhsv(261, 75%, 39%)
CMYKcmyk(49%, 75%, 0%, 60.8%)
CIE-LABlab(17.08, 31.51, -39.62)
CIE-LCHlch(17.08, 50.63, 308.50°)
OKLaboklab(29.91% 0.049 -0.1135)
OKLCHoklch(29.91% 0.124 293.3)
XYZxyz(4.0125, 2.3190, 12.2903)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331964 #4A6419
analogous
#192564 #331964 #591964
triadic
#331964 #643319 #196433
tetradic
#331964 #641925 #4A6419 #196459
square
#331964 #641925 #4A6419 #196459
split-complementary
#331964 #645919 #256419
monochromatic
#0C0618 #1A0D33 #331964 #4C2595 #6531C6

Accessibility & contrast

On white

14.35
#331964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331964
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331964#FFFFFF#000000##FFFFFF
##3319641.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#242C3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331964;
/* rgb */ color: rgb(51, 25, 100);
/* oklch */ color: oklch(29.9% 0.124 293.3);
Tailwind
colors: {
  custom: {
    50: '#705891',
    500: '#331964',
    950: '#000000',
  },
}
SCSS
$custom: #331964;
$custom-light: #705891;
$custom-dark: #000000;
JSON
{
  "hex": "#331964",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 260.8,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2991,
    "c": 0.12363,
    "h": 293.3
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#331964
secondary
#7A9A3F
accent
#E345AC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331964

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

Preview Lab → · Contrast checker → · Palette generator →

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