#331C70#331C70

#331C70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.135 H 288.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#331C70
RGBrgb(51, 28, 112)
HSLhsl(256, 60%, 27%)
HSVhsv(256, 75%, 44%)
CMYKcmyk(54.5%, 75%, 0%, 56.1%)
CIE-LABlab(18.82, 33.51, -44.62)
CIE-LCHlch(18.82, 55.80, 306.90°)
OKLaboklab(31.49% 0.0433 -0.1282)
OKLCHoklch(31.49% 0.135 288.7)
XYZxyz(4.7043, 2.7039, 15.6001)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C70 #59701C
analogous
#1C2F70 #331C70 #5D1C70
triadic
#331C70 #70331C #1C7033
tetradic
#331C70 #701C2F #59701C #1C705D
square
#331C70 #701C2F #59701C #1C705D
split-complementary
#331C70 #705D1C #2F701C
monochromatic
#0B0618 #1D103F #331C70 #4928A1 #6239CD

Accessibility & contrast

On white

13.63
#331C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C70
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C70#FFFFFF#000000##FFFFFF
##331C701.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#1C3244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331c70;
/* rgb */ color: rgb(51, 28, 112);
/* oklch */ color: oklch(31.5% 0.135 288.7);
Tailwind
colors: {
  custom: {
    50: '#725a9a',
    500: '#331c70',
    950: '#000000',
  },
}
SCSS
$custom: #331c70;
$custom-light: #725a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#331c70",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 256.429,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.13531,
    "h": 288.7
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#331C70
secondary
#8AA543
accent
#E345B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331C70

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

Preview Lab → · Contrast checker → · Palette generator →

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