#331E61#331E61

#331E61 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.113 H 292.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#331E61
RGBrgb(51, 30, 97)
HSLhsl(259, 53%, 25%)
HSVhsv(259, 69%, 38%)
CMYKcmyk(47.4%, 69.1%, 0%, 62%)
CIE-LABlab(17.90, 27.61, -36.31)
CIE-LCHlch(17.90, 45.62, 307.25°)
OKLaboklab(30.41% 0.0438 -0.1038)
OKLCHoklch(30.41% 0.113 292.9)
XYZxyz(3.9866, 2.4953, 11.5785)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E61 #4C611E
analogous
#1E2A61 #331E61 #551E61
triadic
#331E61 #61331E #1E6133
tetradic
#331E61 #611E2A #4C611E #1E6155
square
#331E61 #611E2A #4C611E #1E6155
split-complementary
#331E61 #61551E #2A611E
monochromatic
#0C0717 #1A1032 #331E61 #4C2C90 #643BBE

Accessibility & contrast

On white

14.01
#331E61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331E61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E61
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E61#FFFFFF#000000##FFFFFF
##331E611.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D63
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#262E3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331e61;
/* rgb */ color: rgb(51, 30, 97);
/* oklch */ color: oklch(30.4% 0.113 292.9);
Tailwind
colors: {
  custom: {
    50: '#6f5b8e',
    500: '#331e61',
    950: '#000000',
  },
}
SCSS
$custom: #331e61;
$custom-light: #6f5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331e61",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 97
  },
  "hsl": {
    "h": 258.806,
    "s": 52.756,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30413,
    "c": 0.11265,
    "h": 292.9
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#331E61
secondary
#7C9645
accent
#DC4CAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331E61

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

Preview Lab → · Contrast checker → · Palette generator →

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