#331685#331685

#331685 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.167 H 284.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#331685
RGBrgb(51, 22, 133)
HSLhsl(256, 72%, 30%)
HSVhsv(256, 83%, 52%)
CMYKcmyk(61.7%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.93, 42.95, -56.21)
CIE-LCHlch(19.93, 70.74, 307.38°)
OKLaboklab(32.93% 0.0416 -0.162)
OKLCHoklch(32.93% 0.167 284.4)
XYZxyz(5.8845, 2.9707, 22.4491)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331685 #688516
analogous
#163085 #331685 #6B1685
triadic
#331685 #853316 #168533
tetradic
#331685 #851630 #688516 #16856B
square
#331685 #851630 #688516 #16856B
split-complementary
#331685 #856B16 #308516
monochromatic
#0B051C #1F0D50 #331685 #471FBA #6337DE

Accessibility & contrast

On white

13.17
#331685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331685
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331685#FFFFFF#000000##FFFFFF
##3316851.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331685;
/* rgb */ color: rgb(51, 22, 133);
/* oklch */ color: oklch(32.9% 0.167 284.4);
Tailwind
colors: {
  custom: {
    50: '#7658aa',
    500: '#331685',
    950: '#000000',
  },
}
SCSS
$custom: #331685;
$custom-light: #7658aa;
$custom-dark: #000000;
JSON
{
  "hex": "#331685",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 255.676,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32926,
    "c": 0.16728,
    "h": 284.4
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#331685
secondary
#99B93E
accent
#EE39BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331685

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

Preview Lab → · Contrast checker → · Palette generator →

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