#331768#331768

#331768 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.131 H 292.4°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#331768
RGBrgb(51, 23, 104)
HSLhsl(261, 64%, 25%)
HSVhsv(261, 78%, 41%)
CMYKcmyk(51%, 77.9%, 0%, 59.2%)
CIE-LABlab(17.06, 33.82, -42.28)
CIE-LCHlch(17.06, 54.14, 308.66°)
OKLaboklab(30.02% 0.05 -0.1213)
OKLCHoklch(30.02% 0.131 292.4)
XYZxyz(4.1696, 2.3159, 13.3213)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331768 #4C6817
analogous
#172368 #331768 #5C1768
triadic
#331768 #683317 #176833
tetradic
#331768 #681723 #4C6817 #17685C
square
#331768 #681723 #4C6817 #17685C
split-complementary
#331768 #685C17 #236817
monochromatic
#0C0619 #1A0C36 #331768 #4C229A #642DCC

Accessibility & contrast

On white

14.35
#331768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331768
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331768#FFFFFF#000000##FFFFFF
##3317681.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#222D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331768;
/* rgb */ color: rgb(51, 23, 104);
/* oklch */ color: oklch(30.0% 0.131 292.4);
Tailwind
colors: {
  custom: {
    50: '#715794',
    500: '#331768',
    950: '#000000',
  },
}
SCSS
$custom: #331768;
$custom-light: #715794;
$custom-dark: #000000;
JSON
{
  "hex": "#331768",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 260.741,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30016,
    "c": 0.1312,
    "h": 292.4
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#331768
secondary
#7C9E3D
accent
#E741AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331768

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

Preview Lab → · Contrast checker → · Palette generator →

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