#331C55#331C55

#331C55 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.099 H 298.6°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#331C55
RGBrgb(51, 28, 85)
HSLhsl(264, 50%, 22%)
HSVhsv(264, 67%, 33%)
CMYKcmyk(40%, 67.1%, 0%, 66.7%)
CIE-LABlab(16.46, 25.17, -30.63)
CIE-LCHlch(16.46, 39.65, 309.42°)
OKLaboklab(29.06% 0.0475 -0.0871)
OKLCHoklch(29.06% 0.099 298.6)
XYZxyz(3.4198, 2.1902, 8.8351)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C55 #3E551C
analogous
#1C2155 #331C55 #501C55
triadic
#331C55 #55331C #1C5533
tetradic
#331C55 #551C21 #3E551C #1C5550
square
#331C55 #551C21 #3E551C #1C5550
split-complementary
#331C55 #55501C #21551C
monochromatic
#0E0817 #170D27 #331C55 #4F2B83 #6A3AB1

Accessibility & contrast

On white

14.60
#331C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C55
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C55#FFFFFF#000000##FFFFFF
##331C551.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#052854
Tritanopia (blue-blind)
#2B2835
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331c55;
/* rgb */ color: rgb(51, 28, 85);
/* oklch */ color: oklch(29.1% 0.099 298.6);
Tailwind
colors: {
  custom: {
    50: '#6e5985',
    500: '#331c55',
    950: '#000000',
  },
}
SCSS
$custom: #331c55;
$custom-light: #6e5985;
$custom-dark: #000000;
JSON
{
  "hex": "#331c55",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 264.211,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29059,
    "c": 0.0992,
    "h": 298.6
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#331C55
secondary
#6D8B42
accent
#DA4EA1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331C55

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

Preview Lab → · Contrast checker → · Palette generator →

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