#331E60#331E60

#331E60 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.111 H 293.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#331E60
RGBrgb(51, 30, 96)
HSLhsl(259, 52%, 25%)
HSVhsv(259, 69%, 38%)
CMYKcmyk(46.9%, 68.7%, 0%, 62.4%)
CIE-LABlab(17.81, 27.30, -35.78)
CIE-LCHlch(17.81, 45.01, 307.34°)
OKLaboklab(30.33% 0.0439 -0.1022)
OKLCHoklch(30.33% 0.111 293.3)
XYZxyz(3.9403, 2.4768, 11.3345)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E60 #4B601E
analogous
#1E2A60 #331E60 #541E60
triadic
#331E60 #60331E #1E6033
tetradic
#331E60 #601E2A #4B601E #1E6054
square
#331E60 #601E2A #4B601E #1E6054
split-complementary
#331E60 #60541E #2A601E
monochromatic
#0C0717 #1A0F31 #331E60 #4C2D8F #653BBD

Accessibility & contrast

On white

14.04
#331E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E60
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E60#FFFFFF#000000##FFFFFF
##331E601.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#262D3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331e60;
/* rgb */ color: rgb(51, 30, 96);
/* oklch */ color: oklch(30.3% 0.111 293.3);
Tailwind
colors: {
  custom: {
    50: '#6f5b8e',
    500: '#331e60',
    950: '#000000',
  },
}
SCSS
$custom: #331e60;
$custom-light: #6f5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331e60",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 96
  },
  "hsl": {
    "h": 259.091,
    "s": 52.381,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.11128,
    "h": 293.3
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#331E60
secondary
#7B9545
accent
#DC4CAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331E60

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

Preview Lab → · Contrast checker → · Palette generator →

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