#331CA0#331CA0

#331CA0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.194 H 278.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#331CA0
RGBrgb(51, 28, 160)
HSLhsl(250, 70%, 37%)
HSVhsv(250, 83%, 63%)
CMYKcmyk(68.1%, 82.5%, 0%, 37.3%)
CIE-LABlab(23.91, 48.23, -66.36)
CIE-LCHlch(23.91, 82.04, 306.01°)
OKLaboklab(36.57% 0.0295 -0.1916)
OKLCHoklch(36.57% 0.194 278.8)
XYZxyz(8.1236, 4.0717, 33.6087)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331CA0 #89A01C
analogous
#1C47A0 #331CA0 #751CA0
triadic
#331CA0 #A0331C #1CA033
tetradic
#331CA0 #A01C47 #89A01C #1CA075
square
#331CA0 #A01C47 #89A01C #1CA075
split-complementary
#331CA0 #A0751C #47A01C
monochromatic
#120A38 #22136C #331CA0 #4425D4 #6E55E1

Accessibility & contrast

On white

11.57
#331CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#331CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331CA0
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331CA0#FFFFFF#000000##FFFFFF
##331CA01.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #331ca0;
/* rgb */ color: rgb(51, 28, 160);
/* oklch */ color: oklch(36.6% 0.194 278.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#331ca0',
    950: '#000000',
  },
}
SCSS
$custom: #331ca0;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#331ca0",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 250.455,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36573,
    "c": 0.19391,
    "h": 278.8
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#331CA0
secondary
#B1C453
accent
#ED3BCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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