#331361#331361

#331361 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.127 H 296.0°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#331361
RGBrgb(51, 19, 97)
HSLhsl(265, 67%, 23%)
HSVhsv(265, 80%, 38%)
CMYKcmyk(47.4%, 80.4%, 0%, 62%)
CIE-LABlab(15.66, 33.84, -39.96)
CIE-LCHlch(15.66, 52.37, 310.26°)
OKLaboklab(28.82% 0.0558 -0.1145)
OKLCHoklch(28.82% 0.127 296)
XYZxyz(3.7552, 2.0325, 11.5014)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331361 #416113
analogous
#131A61 #331361 #5A1361
triadic
#331361 #613313 #136133
tetradic
#331361 #61131A #416113 #13615A
square
#331361 #61131A #416113 #13615A
split-complementary
#331361 #615A13 #1A6113
monochromatic
#0D051A #18092E #331361 #4E1D94 #6927C7

Accessibility & contrast

On white

14.93
#331361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331361
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331361#FFFFFF#000000##FFFFFF
##3313611.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#262839
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331361;
/* rgb */ color: rgb(51, 19, 97);
/* oklch */ color: oklch(28.8% 0.127 296.0);
Tailwind
colors: {
  custom: {
    50: '#70548f',
    500: '#331361',
    950: '#000000',
  },
}
SCSS
$custom: #331361;
$custom-light: #70548f;
$custom-dark: #000000;
JSON
{
  "hex": "#331361",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 264.615,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28817,
    "c": 0.12732,
    "h": 296
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#331361
secondary
#719937
accent
#EA3EA3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331361

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

Preview Lab → · Contrast checker → · Palette generator →

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