#331E79#331E79

#331E79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.145 H 285.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#331E79
RGBrgb(51, 30, 121)
HSLhsl(254, 60%, 30%)
HSVhsv(254, 75%, 47%)
CMYKcmyk(57.9%, 75.2%, 0%, 52.5%)
CIE-LABlab(20.09, 35.20, -48.32)
CIE-LCHlch(20.09, 59.78, 306.07°)
OKLaboklab(32.67% 0.0394 -0.139)
OKLCHoklch(32.67% 0.145 285.8)
XYZxyz(5.2797, 3.0125, 18.3887)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E79 #64791E
analogous
#1E3779 #331E79 #611E79
triadic
#331E79 #79331E #1E7933
tetradic
#331E79 #791E37 #64791E #1E7961
square
#331E79 #791E37 #64791E #1E7961
split-complementary
#331E79 #79611E #37791E
monochromatic
#0A0619 #1E1248 #331E79 #482AAA #6241D0

Accessibility & contrast

On white

13.10
#331E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#331E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E79
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E79#FFFFFF#000000##FFFFFF
##331E791.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#133749
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331e79;
/* rgb */ color: rgb(51, 30, 121);
/* oklch */ color: oklch(32.7% 0.145 285.8);
Tailwind
colors: {
  custom: {
    50: '#735ca1',
    500: '#331e79',
    950: '#000000',
  },
}
SCSS
$custom: #331e79;
$custom-light: #735ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#331e79",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 253.846,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.14451,
    "h": 285.8
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#331E79
secondary
#95AD46
accent
#E344BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331E79

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

Preview Lab → · Contrast checker → · Palette generator →

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