#331C72#331C72

#331C72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.138 H 288.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#331C72
RGBrgb(51, 28, 114)
HSLhsl(256, 61%, 28%)
HSVhsv(256, 75%, 45%)
CMYKcmyk(55.3%, 75.4%, 0%, 55.3%)
CIE-LABlab(19.01, 34.13, -45.60)
CIE-LCHlch(19.01, 56.96, 306.81°)
OKLaboklab(31.69% 0.0428 -0.1311)
OKLCHoklch(31.69% 0.138 288.1)
XYZxyz(4.8169, 2.7490, 16.1931)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C72 #5B721C
analogous
#1C3072 #331C72 #5E1C72
triadic
#331C72 #72331C #1C7233
tetradic
#331C72 #721C30 #5B721C #1C725E
square
#331C72 #721C30 #5B721C #1C725E
split-complementary
#331C72 #725E1C #30721C
monochromatic
#0B0619 #1D1041 #331C72 #4928A3 #623ACF

Accessibility & contrast

On white

13.55
#331C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C72
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C72#FFFFFF#000000##FFFFFF
##331C721.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#1A3345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331c72;
/* rgb */ color: rgb(51, 28, 114);
/* oklch */ color: oklch(31.7% 0.138 288.1);
Tailwind
colors: {
  custom: {
    50: '#725a9b',
    500: '#331c72',
    950: '#000000',
  },
}
SCSS
$custom: #331c72;
$custom-light: #725a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#331c72",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 256.047,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31688,
    "c": 0.13789,
    "h": 288.1
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#331C72
secondary
#8CA643
accent
#E444B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331C72

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

Preview Lab → · Contrast checker → · Palette generator →

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