#331967#331967

#331967 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.127 H 292.3°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#331967
RGBrgb(51, 25, 103)
HSLhsl(260, 61%, 25%)
HSVhsv(260, 76%, 40%)
CMYKcmyk(50.5%, 75.7%, 0%, 59.6%)
CIE-LABlab(17.36, 32.43, -41.14)
CIE-LCHlch(17.36, 52.38, 308.24°)
OKLaboklab(30.19% 0.0483 -0.118)
OKLCHoklch(30.19% 0.127 292.3)
XYZxyz(4.1604, 2.3782, 13.0692)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331967 #4D6719
analogous
#192667 #331967 #5A1967
triadic
#331967 #673319 #196733
tetradic
#331967 #671926 #4D6719 #19675A
square
#331967 #671926 #4D6719 #19675A
split-complementary
#331967 #675A19 #266719
monochromatic
#0C0619 #1B0D36 #331967 #4B2598 #6431C9

Accessibility & contrast

On white

14.23
#331967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331967
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331967#FFFFFF#000000##FFFFFF
##3319671.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#232D3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331967;
/* rgb */ color: rgb(51, 25, 103);
/* oklch */ color: oklch(30.2% 0.127 292.3);
Tailwind
colors: {
  custom: {
    50: '#715893',
    500: '#331967',
    950: '#000000',
  },
}
SCSS
$custom: #331967;
$custom-light: #715893;
$custom-dark: #000000;
JSON
{
  "hex": "#331967",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 260,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30194,
    "c": 0.12748,
    "h": 292.3
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#331967
secondary
#7E9D3F
accent
#E444AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331967

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

Preview Lab → · Contrast checker → · Palette generator →

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