#331A53#331A53

#331A53 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.100 H 300.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#331A53
RGBrgb(51, 26, 83)
HSLhsl(266, 52%, 21%)
HSVhsv(266, 69%, 33%)
CMYKcmyk(38.6%, 68.7%, 0%, 67.5%)
CIE-LABlab(15.84, 25.82, -30.28)
CIE-LCHlch(15.84, 39.79, 310.46°)
OKLaboklab(28.56% 0.0504 -0.086)
OKLCHoklch(28.56% 0.1 300.3)
XYZxyz(3.2956, 2.0671, 8.4073)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A53 #3A531A
analogous
#1A1E53 #331A53 #501A53
triadic
#331A53 #53331A #1A5333
tetradic
#331A53 #531A1E #3A531A #1A5350
square
#331A53 #531A1E #3A531A #1A5350
split-complementary
#331A53 #53501A #1E531A
monochromatic
#0E0717 #160B24 #331A53 #502982 #6C37B0

Accessibility & contrast

On white

14.86
#331A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331A53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A53
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A53#FFFFFF#000000##FFFFFF
##331A531.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#042752
Tritanopia (blue-blind)
#2C2633
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331a53;
/* rgb */ color: rgb(51, 26, 83);
/* oklch */ color: oklch(28.6% 0.100 300.3);
Tailwind
colors: {
  custom: {
    50: '#6e5884',
    500: '#331a53',
    950: '#000000',
  },
}
SCSS
$custom: #331a53;
$custom-light: #6e5884;
$custom-dark: #000000;
JSON
{
  "hex": "#331a53",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 83
  },
  "hsl": {
    "h": 266.316,
    "s": 52.294,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28559,
    "c": 0.0997,
    "h": 300.3
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#331A53
secondary
#698940
accent
#DC4C9D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331A53

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

Preview Lab → · Contrast checker → · Palette generator →

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