#331E6C#331E6C

#331E6C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.128 H 289.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#331E6C
RGBrgb(51, 30, 108)
HSLhsl(256, 57%, 27%)
HSVhsv(256, 72%, 42%)
CMYKcmyk(52.8%, 72.2%, 0%, 57.6%)
CIE-LABlab(18.86, 31.08, -41.95)
CIE-LCHlch(18.86, 52.21, 306.53°)
OKLaboklab(31.41% 0.0421 -0.1204)
OKLCHoklch(31.41% 0.128 289.3)
XYZxyz(4.5355, 2.7149, 14.4695)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E6C #576C1E
analogous
#1E306C #331E6C #5A1E6C
triadic
#331E6C #6C331E #1E6C33
tetradic
#331E6C #6C1E30 #576C1E #1E6C5A
square
#331E6C #6C1E30 #576C1E #1E6C5A
split-complementary
#331E6C #6C5A1E #306C1E
monochromatic
#0B0718 #1C113C #331E6C #4A2B9C #623CC9

Accessibility & contrast

On white

13.61
#331E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E6C
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E6C#FFFFFF#000000##FFFFFF
##331E6C1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#1F3242
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331e6c;
/* rgb */ color: rgb(51, 30, 108);
/* oklch */ color: oklch(31.4% 0.128 289.3);
Tailwind
colors: {
  custom: {
    50: '#715b97',
    500: '#331e6c',
    950: '#000000',
  },
}
SCSS
$custom: #331e6c;
$custom-light: #715b97;
$custom-dark: #000000;
JSON
{
  "hex": "#331e6c",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 256.154,
    "s": 56.522,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.12752,
    "h": 289.3
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#331E6C
secondary
#88A045
accent
#E048B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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