#331680#331680

#331680 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.161 H 285.6°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#331680
RGBrgb(51, 22, 128)
HSLhsl(256, 71%, 29%)
HSVhsv(256, 83%, 50%)
CMYKcmyk(60.2%, 82.8%, 0%, 49.8%)
CIE-LABlab(19.37, 41.47, -53.96)
CIE-LCHlch(19.37, 68.06, 307.55°)
OKLaboklab(32.38% 0.0433 -0.1555)
OKLCHoklch(32.38% 0.161 285.6)
XYZxyz(5.5473, 2.8358, 20.6729)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331680 #638016
analogous
#162E80 #331680 #681680
triadic
#331680 #803316 #168033
tetradic
#331680 #80162E #638016 #168068
square
#331680 #80162E #638016 #168068
split-complementary
#331680 #806816 #2E8016
monochromatic
#0A041A #1E0D4C #331680 #481FB4 #6234DC

Accessibility & contrast

On white

13.40
#331680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#331680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331680
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331680#FFFFFF#000000##FFFFFF
##3316801.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#08364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331680;
/* rgb */ color: rgb(51, 22, 128);
/* oklch */ color: oklch(32.4% 0.161 285.6);
Tailwind
colors: {
  custom: {
    50: '#7558a6',
    500: '#331680',
    950: '#000000',
  },
}
SCSS
$custom: #331680;
$custom-light: #7558a6;
$custom-dark: #000000;
JSON
{
  "hex": "#331680",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 256.415,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3238,
    "c": 0.16139,
    "h": 285.6
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#331680
secondary
#94B53D
accent
#ED3ABC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #331680

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

Preview Lab → · Contrast checker → · Palette generator →

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