#331C61#331C61

#331C61 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.116 H 293.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#331C61
RGBrgb(51, 28, 97)
HSLhsl(260, 55%, 25%)
HSVhsv(260, 71%, 38%)
CMYKcmyk(47.4%, 71.1%, 0%, 62%)
CIE-LABlab(17.45, 28.84, -37.04)
CIE-LCHlch(17.45, 46.94, 307.90°)
OKLaboklab(30.09% 0.0462 -0.1059)
OKLCHoklch(30.09% 0.116 293.6)
XYZxyz(3.9376, 2.3973, 11.5622)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C61 #4A611C
analogous
#1C2861 #331C61 #561C61
triadic
#331C61 #61331C #1C6133
tetradic
#331C61 #611C28 #4A611C #1C6156
square
#331C61 #611C28 #4A611C #1C6156
split-complementary
#331C61 #61561C #28611C
monochromatic
#0C0718 #1A0E32 #331C61 #4C2A90 #6537C0

Accessibility & contrast

On white

14.19
#331C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C61
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C61#FFFFFF#000000##FFFFFF
##331C611.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#262D3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331c61;
/* rgb */ color: rgb(51, 28, 97);
/* oklch */ color: oklch(30.1% 0.116 293.6);
Tailwind
colors: {
  custom: {
    50: '#6f5a8e',
    500: '#331c61',
    950: '#000000',
  },
}
SCSS
$custom: #331c61;
$custom-light: #6f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331c61",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 260,
    "s": 55.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30089,
    "c": 0.11557,
    "h": 293.6
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#331C61
secondary
#7A9643
accent
#DF49AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331C61

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

Preview Lab → · Contrast checker → · Palette generator →

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