#331E55#331E55

#331E55 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.096 H 297.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#331E55
RGBrgb(51, 30, 85)
HSLhsl(263, 48%, 23%)
HSVhsv(263, 65%, 33%)
CMYKcmyk(40%, 64.7%, 0%, 66.7%)
CIE-LABlab(16.93, 23.90, -29.86)
CIE-LCHlch(16.93, 38.25, 308.68°)
OKLaboklab(29.41% 0.0448 -0.0848)
OKLCHoklch(29.41% 0.096 297.8)
XYZxyz(3.4688, 2.2882, 8.8515)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E55 #40551E
analogous
#1E2555 #331E55 #4E1E55
triadic
#331E55 #55331E #1E5533
tetradic
#331E55 #551E25 #40551E #1E554E
square
#331E55 #551E25 #40551E #1E554E
split-complementary
#331E55 #554E1E #25551E
monochromatic
#0E0817 #180E28 #331E55 #4E2E82 #693EAF

Accessibility & contrast

On white

14.41
#331E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E55
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E55#FFFFFF#000000##FFFFFF
##331E551.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#2B2A36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331e55;
/* rgb */ color: rgb(51, 30, 85);
/* oklch */ color: oklch(29.4% 0.096 297.8);
Tailwind
colors: {
  custom: {
    50: '#6d5b85',
    500: '#331e55',
    950: '#000000',
  },
}
SCSS
$custom: #331e55;
$custom-light: #6d5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#331e55",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 262.909,
    "s": 47.826,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29406,
    "c": 0.09591,
    "h": 297.8
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#331E55
secondary
#708A45
accent
#D750A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #331E55

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

Preview Lab → · Contrast checker → · Palette generator →

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