#331665#331665

#331665 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.129 H 293.7°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#331665
RGBrgb(51, 22, 101)
HSLhsl(262, 64%, 24%)
HSVhsv(262, 78%, 40%)
CMYKcmyk(49.5%, 78.2%, 0%, 60.4%)
CIE-LABlab(16.59, 33.46, -41.09)
CIE-LCHlch(16.59, 52.99, 309.16°)
OKLaboklab(29.59% 0.0518 -0.1178)
OKLCHoklch(29.59% 0.129 293.7)
XYZxyz(4.0005, 2.2171, 12.5266)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331665 #486516
analogous
#162165 #331665 #5B1665
triadic
#331665 #653316 #166533
tetradic
#331665 #651621 #486516 #16655B
square
#331665 #651621 #486516 #16655B
split-complementary
#331665 #655B16 #216516
monochromatic
#0D0519 #1A0B33 #331665 #4C2197 #662CCA

Accessibility & contrast

On white

14.55
#331665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331665
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331665#FFFFFF#000000##FFFFFF
##3316651.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#242B3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331665;
/* rgb */ color: rgb(51, 22, 101);
/* oklch */ color: oklch(29.6% 0.129 293.7);
Tailwind
colors: {
  custom: {
    50: '#705692',
    500: '#331665',
    950: '#000000',
  },
}
SCSS
$custom: #331665;
$custom-light: #705692;
$custom-dark: #000000;
JSON
{
  "hex": "#331665",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 262.025,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2959,
    "c": 0.12866,
    "h": 293.7
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#331665
secondary
#789C3B
accent
#E741AA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331665

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

Preview Lab → · Contrast checker → · Palette generator →

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