#331664#331664

#331664 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.127 H 294.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#331664
RGBrgb(51, 22, 100)
HSLhsl(262, 64%, 24%)
HSVhsv(262, 78%, 39%)
CMYKcmyk(49%, 78%, 0%, 60.8%)
CIE-LABlab(16.49, 33.17, -40.58)
CIE-LCHlch(16.49, 52.41, 309.26°)
OKLaboklab(29.49% 0.0521 -0.1163)
OKLCHoklch(29.49% 0.127 294.1)
XYZxyz(3.9518, 2.1976, 12.2701)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331664 #476416
analogous
#162064 #331664 #5A1664
triadic
#331664 #643316 #166433
tetradic
#331664 #641620 #476416 #16645A
square
#331664 #641620 #476416 #16645A
split-complementary
#331664 #645A16 #206416
monochromatic
#0D0619 #190B32 #331664 #4D2196 #662CC8

Accessibility & contrast

On white

14.59
#331664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331664
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331664#FFFFFF#000000##FFFFFF
##3316641.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#252B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331664;
/* rgb */ color: rgb(51, 22, 100);
/* oklch */ color: oklch(29.5% 0.127 294.1);
Tailwind
colors: {
  custom: {
    50: '#705691',
    500: '#331664',
    950: '#000000',
  },
}
SCSS
$custom: #331664;
$custom-light: #705691;
$custom-dark: #000000;
JSON
{
  "hex": "#331664",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 262.308,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29493,
    "c": 0.12743,
    "h": 294.1
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#331664
secondary
#779B3B
accent
#E741A9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331664

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

Preview Lab → · Contrast checker → · Palette generator →

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