#331668#331668

#331668 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.132 H 292.6°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#331668
RGBrgb(51, 22, 104)
HSLhsl(261, 65%, 25%)
HSVhsv(261, 79%, 41%)
CMYKcmyk(51%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.88, 34.35, -42.58)
CIE-LCHlch(16.88, 54.71, 308.89°)
OKLaboklab(29.89% 0.051 -0.1222)
OKLCHoklch(29.89% 0.132 292.6)
XYZxyz(4.1501, 2.2770, 13.3148)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331668 #4B6816
analogous
#162268 #331668 #5C1668
triadic
#331668 #683316 #166833
tetradic
#331668 #681622 #4B6816 #16685C
square
#331668 #681622 #4B6816 #16685C
split-complementary
#331668 #685C16 #226816
monochromatic
#0C0519 #1A0B35 #331668 #4C219B #652BCD

Accessibility & contrast

On white

14.43
#331668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331668
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331668#FFFFFF#000000##FFFFFF
##3316681.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#222C3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331668;
/* rgb */ color: rgb(51, 22, 104);
/* oklch */ color: oklch(29.9% 0.132 292.6);
Tailwind
colors: {
  custom: {
    50: '#715794',
    500: '#331668',
    950: '#000000',
  },
}
SCSS
$custom: #331668;
$custom-light: #715794;
$custom-dark: #000000;
JSON
{
  "hex": "#331668",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 261.22,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29885,
    "c": 0.13239,
    "h": 292.6
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#331668
secondary
#7B9F3B
accent
#E840AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331668

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

Preview Lab → · Contrast checker → · Palette generator →

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