#331690#331690

#331690 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.180 H 282.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#331690
RGBrgb(51, 22, 144)
HSLhsl(254, 73%, 33%)
HSVhsv(254, 85%, 56%)
CMYKcmyk(64.6%, 84.7%, 0%, 43.5%)
CIE-LABlab(21.17, 46.16, -61.04)
CIE-LCHlch(21.17, 76.53, 307.10°)
OKLaboklab(34.15% 0.0377 -0.1761)
OKLCHoklch(34.15% 0.18 282.1)
XYZxyz(6.6846, 3.2907, 26.6631)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331690 #739016
analogous
#163690 #331690 #701690
triadic
#331690 #903316 #169033
tetradic
#331690 #901636 #739016 #169070
square
#331690 #901636 #739016 #169070
split-complementary
#331690 #907016 #369016
monochromatic
#0D0626 #200E5B #331690 #461EC5 #653FE2

Accessibility & contrast

On white

12.66
#331690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#331690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331690
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331690#FFFFFF#000000##FFFFFF
##3316901.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331690;
/* rgb */ color: rgb(51, 22, 144);
/* oklch */ color: oklch(34.2% 0.180 282.1);
Tailwind
colors: {
  custom: {
    50: '#7859b2',
    500: '#331690',
    950: '#000000',
  },
}
SCSS
$custom: #331690;
$custom-light: #7859b2;
$custom-dark: #000000;
JSON
{
  "hex": "#331690",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 254.262,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.18006,
    "h": 282.1
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#331690
secondary
#A3C240
accent
#F038C4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331690

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

Preview Lab → · Contrast checker → · Palette generator →

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