#331466#331466

#331466 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.132 H 293.8°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#331466
RGBrgb(51, 20, 102)
HSLhsl(263, 67%, 24%)
HSVhsv(263, 80%, 40%)
CMYKcmyk(50%, 80.4%, 0%, 60%)
CIE-LABlab(16.32, 34.79, -42.18)
CIE-LCHlch(16.32, 54.67, 309.51°)
OKLaboklab(29.43% 0.0534 -0.121)
OKLCHoklch(29.43% 0.132 293.8)
XYZxyz(4.0130, 2.1633, 12.7739)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331466 #476614
analogous
#141E66 #331466 #5C1466
triadic
#331466 #663314 #146633
tetradic
#331466 #66141E #476614 #14665C
square
#331466 #66141E #476614 #14665C
split-complementary
#331466 #665C14 #1E6614
monochromatic
#0D051A #190A33 #331466 #4D1E99 #6628CC

Accessibility & contrast

On white

14.66
#331466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331466
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331466#FFFFFF#000000##FFFFFF
##3314661.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#242A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331466;
/* rgb */ color: rgb(51, 20, 102);
/* oklch */ color: oklch(29.4% 0.132 293.8);
Tailwind
colors: {
  custom: {
    50: '#715592',
    500: '#331466',
    950: '#000000',
  },
}
SCSS
$custom: #331466;
$custom-light: #715592;
$custom-dark: #000000;
JSON
{
  "hex": "#331466",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 262.683,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29434,
    "c": 0.13223,
    "h": 293.8
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#331466
secondary
#779D39
accent
#EA3EA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331466

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

Preview Lab → · Contrast checker → · Palette generator →

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