#331760#331760

#331760 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.121 H 295.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#331760
RGBrgb(51, 23, 96)
HSLhsl(263, 61%, 23%)
HSVhsv(263, 76%, 38%)
CMYKcmyk(46.9%, 76%, 0%, 62.4%)
CIE-LABlab(16.31, 31.44, -38.23)
CIE-LCHlch(16.31, 49.49, 309.43°)
OKLaboklab(29.25% 0.052 -0.1094)
OKLCHoklch(29.25% 0.121 295.4)
XYZxyz(3.7824, 2.1610, 11.2819)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331760 #446017
analogous
#171F60 #331760 #571760
triadic
#331760 #603317 #176033
tetradic
#331760 #60171F #446017 #176057
square
#331760 #60171F #446017 #176057
split-complementary
#331760 #605717 #1F6017
monochromatic
#0D0619 #190B2F #331760 #4D2391 #672FC3

Accessibility & contrast

On white

14.66
#331760 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331760
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331760#FFFFFF#000000##FFFFFF
##3317601.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331760;
/* rgb */ color: rgb(51, 23, 96);
/* oklch */ color: oklch(29.2% 0.121 295.4);
Tailwind
colors: {
  custom: {
    50: '#70578e',
    500: '#331760',
    950: '#000000',
  },
}
SCSS
$custom: #331760;
$custom-light: #70578e;
$custom-dark: #000000;
JSON
{
  "hex": "#331760",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 96
  },
  "hsl": {
    "h": 263.014,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29249,
    "c": 0.12112,
    "h": 295.4
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#331760
secondary
#74973C
accent
#E443A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331760

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

Preview Lab → · Contrast checker → · Palette generator →

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