#331650#331650

#331650 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.102 H 303.3°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#331650
RGBrgb(51, 22, 80)
HSLhsl(270, 57%, 20%)
HSVhsv(270, 73%, 31%)
CMYKcmyk(36.3%, 72.5%, 0%, 68.6%)
CIE-LABlab(14.72, 27.35, -30.04)
CIE-LCHlch(14.72, 40.62, 312.31°)
OKLaboklab(27.68% 0.056 -0.0853)
OKLCHoklch(27.68% 0.102 303.3)
XYZxyz(3.0998, 1.8568, 7.7830)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331650 #335016
analogous
#161650 #331650 #501650
triadic
#331650 #503316 #165033
tetradic
#331650 #501616 #335016 #165050
square
#331650 #501616 #335016 #165050
split-complementary
#331650 #505016 #165016
monochromatic
#0F0718 #140920 #331650 #522380 #7030B0

Accessibility & contrast

On white

15.31
#331650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331650
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331650#FFFFFF#000000##FFFFFF
##3316501.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#03254F
Tritanopia (blue-blind)
#2D2330
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331650;
/* rgb */ color: rgb(51, 22, 80);
/* oklch */ color: oklch(27.7% 0.102 303.3);
Tailwind
colors: {
  custom: {
    50: '#6e5581',
    500: '#331650',
    950: '#000000',
  },
}
SCSS
$custom: #331650;
$custom-light: #6e5581;
$custom-dark: #000000;
JSON
{
  "hex": "#331650",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 270,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.27675,
    "c": 0.10205,
    "h": 303.3
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#331650
secondary
#61873A
accent
#E04894
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331650

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

Preview Lab → · Contrast checker → · Palette generator →

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