#331E7A#331E7A

#331E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.146 H 285.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#331E7A
RGBrgb(51, 30, 122)
HSLhsl(254, 61%, 30%)
HSVhsv(254, 75%, 48%)
CMYKcmyk(58.2%, 75.4%, 0%, 52.2%)
CIE-LABlab(20.19, 35.52, -48.80)
CIE-LCHlch(20.19, 60.35, 306.05°)
OKLaboklab(32.77% 0.0392 -0.1404)
OKLCHoklch(32.77% 0.146 285.6)
XYZxyz(5.3413, 3.0372, 18.7134)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E7A #657A1E
analogous
#1E377A #331E7A #611E7A
triadic
#331E7A #7A331E #1E7A33
tetradic
#331E7A #7A1E37 #657A1E #1E7A61
square
#331E7A #7A1E37 #657A1E #1E7A61
split-complementary
#331E7A #7A611E #377A1E
monochromatic
#0A0619 #1E1249 #331E7A #482AAB #6242D0

Accessibility & contrast

On white

13.06
#331E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#331E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E7A
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E7A#FFFFFF#000000##FFFFFF
##331E7A1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#11374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331e7a;
/* rgb */ color: rgb(51, 30, 122);
/* oklch */ color: oklch(32.8% 0.146 285.6);
Tailwind
colors: {
  custom: {
    50: '#735ca1',
    500: '#331e7a',
    950: '#000000',
  },
}
SCSS
$custom: #331e7a;
$custom-light: #735ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#331e7a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 253.696,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32765,
    "c": 0.14579,
    "h": 285.6
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#331E7A
secondary
#96AE46
accent
#E444BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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