#331E73#331E73

#331E73 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.137 H 287.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#331E73
RGBrgb(51, 30, 115)
HSLhsl(255, 59%, 28%)
HSVhsv(255, 74%, 45%)
CMYKcmyk(55.7%, 73.9%, 0%, 54.9%)
CIE-LABlab(19.52, 33.30, -45.42)
CIE-LCHlch(19.52, 56.32, 306.25°)
OKLaboklab(32.08% 0.0407 -0.1305)
OKLCHoklch(32.08% 0.137 287.3)
XYZxyz(4.9231, 2.8699, 16.5109)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E73 #5E731E
analogous
#1E3373 #331E73 #5D1E73
triadic
#331E73 #73331E #1E7333
tetradic
#331E73 #731E33 #5E731E #1E735D
square
#331E73 #731E33 #5E731E #1E735D
split-complementary
#331E73 #735D1E #33731E
monochromatic
#0B0618 #1D1142 #331E73 #492BA4 #623FCD

Accessibility & contrast

On white

13.34
#331E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#331E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E73
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E73#FFFFFF#000000##FFFFFF
##331E731.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#193446
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331e73;
/* rgb */ color: rgb(51, 30, 115);
/* oklch */ color: oklch(32.1% 0.137 287.3);
Tailwind
colors: {
  custom: {
    50: '#725c9c',
    500: '#331e73',
    950: '#000000',
  },
}
SCSS
$custom: #331e73;
$custom-light: #725c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#331e73",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 115
  },
  "hsl": {
    "h": 254.824,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32077,
    "c": 0.13675,
    "h": 287.3
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#331E73
secondary
#8FA746
accent
#E246BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331E73

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

Preview Lab → · Contrast checker → · Palette generator →

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