#331C60#331C60

#331C60 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.114 H 293.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#331C60
RGBrgb(51, 28, 96)
HSLhsl(260, 55%, 24%)
HSVhsv(260, 71%, 38%)
CMYKcmyk(46.9%, 70.8%, 0%, 62.4%)
CIE-LABlab(17.36, 28.53, -36.52)
CIE-LCHlch(17.36, 46.34, 308.00°)
OKLaboklab(30% 0.0464 -0.1044)
OKLCHoklch(30% 0.114 293.9)
XYZxyz(3.8912, 2.3787, 11.3182)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C60 #49601C
analogous
#1C2760 #331C60 #551C60
triadic
#331C60 #60331C #1C6033
tetradic
#331C60 #601C27 #49601C #1C6055
square
#331C60 #601C27 #49601C #1C6055
split-complementary
#331C60 #60551C #27601C
monochromatic
#0D0718 #1A0E31 #331C60 #4C2A8F #6538BF

Accessibility & contrast

On white

14.23
#331C60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331C60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C60
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C60#FFFFFF#000000##FFFFFF
##331C601.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#262C3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331c60;
/* rgb */ color: rgb(51, 28, 96);
/* oklch */ color: oklch(30.0% 0.114 293.9);
Tailwind
colors: {
  custom: {
    50: '#6f5a8e',
    500: '#331c60',
    950: '#000000',
  },
}
SCSS
$custom: #331c60;
$custom-light: #6f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331c60",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 96
  },
  "hsl": {
    "h": 260.294,
    "s": 54.839,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3,
    "c": 0.11423,
    "h": 293.9
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#331C60
secondary
#799542
accent
#DE4AAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331C60

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

Preview Lab → · Contrast checker → · Palette generator →

#331C60 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva