#331661#331661

#331661 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.124 H 295.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#331661
RGBrgb(51, 22, 97)
HSLhsl(263, 63%, 23%)
HSVhsv(263, 77%, 38%)
CMYKcmyk(47.4%, 77.3%, 0%, 62%)
CIE-LABlab(16.21, 32.28, -39.06)
CIE-LCHlch(16.21, 50.67, 309.57°)
OKLaboklab(29.21% 0.0528 -0.1118)
OKLCHoklch(29.21% 0.124 295.3)
XYZxyz(3.8092, 2.1406, 11.5194)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331661 #446116
analogous
#161E61 #331661 #581661
triadic
#331661 #613316 #166133
tetradic
#331661 #61161E #446116 #166158
square
#331661 #61161E #446116 #166158
split-complementary
#331661 #615816 #1E6116
monochromatic
#0D0619 #190B2F #331661 #4D2193 #672DC5

Accessibility & contrast

On white

14.70
#331661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331661
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331661#FFFFFF#000000##FFFFFF
##3316611.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#26293A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331661;
/* rgb */ color: rgb(51, 22, 97);
/* oklch */ color: oklch(29.2% 0.124 295.3);
Tailwind
colors: {
  custom: {
    50: '#70568f',
    500: '#331661',
    950: '#000000',
  },
}
SCSS
$custom: #331661;
$custom-light: #70568f;
$custom-dark: #000000;
JSON
{
  "hex": "#331661",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 263.2,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29206,
    "c": 0.12368,
    "h": 295.3
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#331661
secondary
#74983B
accent
#E642A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331661

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

Preview Lab → · Contrast checker → · Palette generator →

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