#331A47#331A47

#331A47 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.083 H 307.5°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#331A47
RGBrgb(51, 26, 71)
HSLhsl(273, 46%, 19%)
HSVhsv(273, 63%, 28%)
CMYKcmyk(28.2%, 63.4%, 0%, 72.2%)
CIE-LABlab(14.94, 22.37, -23.49)
CIE-LCHlch(14.94, 32.44, 313.59°)
OKLaboklab(27.62% 0.0507 -0.0661)
OKLCHoklch(27.62% 0.083 307.5)
XYZxyz(2.8717, 1.8976, 6.1750)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A47 #2E471A
analogous
#1D1A47 #331A47 #471A45
triadic
#331A47 #47331A #1A4733
tetradic
#331A47 #471D1A #2E471A #1A4547
square
#331A47 #471D1A #2E471A #1A4547
split-complementary
#331A47 #45471A #1A471D
monochromatic
#100816 #130A1A #331A47 #532A74 #733BA1

Accessibility & contrast

On white

15.22
#331A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A47
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A47#FFFFFF#000000##FFFFFF
##331A471.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2548
Deuteranopia (green-blind)
#132646
Tritanopia (blue-blind)
#30222D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331a47;
/* rgb */ color: rgb(51, 26, 71);
/* oklch */ color: oklch(27.6% 0.083 307.5);
Tailwind
colors: {
  custom: {
    50: '#6c587a',
    500: '#331a47',
    950: '#000000',
  },
}
SCSS
$custom: #331a47;
$custom-light: #6c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#331a47",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 71
  },
  "hsl": {
    "h": 273.333,
    "s": 46.392,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2762,
    "c": 0.08331,
    "h": 307.5
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#331A47
secondary
#5B7D40
accent
#D6528D
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A47

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

Preview Lab → · Contrast checker → · Palette generator →

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