#331966#331966

#331966 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.126 H 292.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#331966
RGBrgb(51, 25, 102)
HSLhsl(260, 61%, 25%)
HSVhsv(260, 75%, 40%)
CMYKcmyk(50%, 75.5%, 0%, 60%)
CIE-LABlab(17.26, 32.12, -40.64)
CIE-LCHlch(17.26, 51.80, 308.32°)
OKLaboklab(30.1% 0.0485 -0.1165)
OKLCHoklch(30.1% 0.126 292.6)
XYZxyz(4.1105, 2.3582, 12.8064)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331966 #4C6619
analogous
#192566 #331966 #5A1966
triadic
#331966 #663319 #196633
tetradic
#331966 #661925 #4C6619 #19665A
square
#331966 #661925 #4C6619 #19665A
split-complementary
#331966 #665A19 #256619
monochromatic
#0C0619 #1A0D35 #331966 #4C2597 #6431C8

Accessibility & contrast

On white

14.27
#331966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331966
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331966#FFFFFF#000000##FFFFFF
##3319661.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#232D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331966;
/* rgb */ color: rgb(51, 25, 102);
/* oklch */ color: oklch(30.1% 0.126 292.6);
Tailwind
colors: {
  custom: {
    50: '#705892',
    500: '#331966',
    950: '#000000',
  },
}
SCSS
$custom: #331966;
$custom-light: #705892;
$custom-dark: #000000;
JSON
{
  "hex": "#331966",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 260.26,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30099,
    "c": 0.1262,
    "h": 292.6
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#331966
secondary
#7C9C3F
accent
#E444AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331966

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

Preview Lab → · Contrast checker → · Palette generator →

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