#331660#331660

#331660 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.122 H 295.7°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#331660
RGBrgb(51, 22, 96)
HSLhsl(264, 63%, 23%)
HSVhsv(264, 77%, 38%)
CMYKcmyk(46.9%, 77.1%, 0%, 62.4%)
CIE-LABlab(16.12, 31.98, -38.55)
CIE-LCHlch(16.12, 50.09, 309.68°)
OKLaboklab(29.11% 0.053 -0.1103)
OKLCHoklch(29.11% 0.122 295.7)
XYZxyz(3.7629, 2.1221, 11.2754)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331660 #436016
analogous
#161E60 #331660 #581660
triadic
#331660 #603316 #166033
tetradic
#331660 #60161E #436016 #166058
square
#331660 #60161E #436016 #166058
split-complementary
#331660 #605816 #1E6016
monochromatic
#0D0619 #190B2E #331660 #4D2192 #682DC4

Accessibility & contrast

On white

14.74
#331660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331660
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331660#FFFFFF#000000##FFFFFF
##3316601.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#272939
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331660;
/* rgb */ color: rgb(51, 22, 96);
/* oklch */ color: oklch(29.1% 0.122 295.7);
Tailwind
colors: {
  custom: {
    50: '#70568e',
    500: '#331660',
    950: '#000000',
  },
}
SCSS
$custom: #331660;
$custom-light: #70568e;
$custom-dark: #000000;
JSON
{
  "hex": "#331660",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 263.514,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29111,
    "c": 0.12242,
    "h": 295.7
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#331660
secondary
#73973B
accent
#E642A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331660

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

Preview Lab → · Contrast checker → · Palette generator →

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