#331761#331761

#331761 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.122 H 295.0°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#331761
RGBrgb(51, 23, 97)
HSLhsl(263, 62%, 24%)
HSVhsv(263, 76%, 38%)
CMYKcmyk(47.4%, 76.3%, 0%, 62%)
CIE-LABlab(16.40, 31.73, -38.74)
CIE-LCHlch(16.40, 50.08, 309.32°)
OKLaboklab(29.34% 0.0518 -0.1109)
OKLCHoklch(29.34% 0.122 295)
XYZxyz(3.8287, 2.1796, 11.5259)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331761 #456117
analogous
#172061 #331761 #581761
triadic
#331761 #613317 #176133
tetradic
#331761 #611720 #456117 #176158
square
#331761 #611720 #456117 #176158
split-complementary
#331761 #615817 #206117
monochromatic
#0D0619 #190B30 #331761 #4D2392 #672EC4

Accessibility & contrast

On white

14.62
#331761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331761
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331761#FFFFFF#000000##FFFFFF
##3317611.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#262A3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331761;
/* rgb */ color: rgb(51, 23, 97);
/* oklch */ color: oklch(29.3% 0.122 295.0);
Tailwind
colors: {
  custom: {
    50: '#70578f',
    500: '#331761',
    950: '#000000',
  },
}
SCSS
$custom: #331761;
$custom-light: #70578f;
$custom-dark: #000000;
JSON
{
  "hex": "#331761",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 262.703,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29343,
    "c": 0.12239,
    "h": 295
  },
  "luminance": 0.0218
}

Semantic roles & 50–950 ramp

primary
#331761
secondary
#75983C
accent
#E543A8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331761

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

Preview Lab → · Contrast checker → · Palette generator →

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