#331A49#331A49

#331A49 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.086 H 306.1°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#331A49
RGBrgb(51, 26, 73)
HSLhsl(272, 47%, 19%)
HSVhsv(272, 64%, 29%)
CMYKcmyk(30.1%, 64.4%, 0%, 71.4%)
CIE-LABlab(15.08, 22.93, -24.65)
CIE-LCHlch(15.08, 33.67, 312.93°)
OKLaboklab(27.77% 0.0507 -0.0695)
OKLCHoklch(27.77% 0.086 306.1)
XYZxyz(2.9370, 1.9237, 6.5186)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A49 #30491A
analogous
#1C1A49 #331A49 #491A48
triadic
#331A49 #49331A #1A4933
tetradic
#331A49 #491C1A #30491A #1A4849
square
#331A49 #491C1A #30491A #1A4849
split-complementary
#331A49 #48491A #1A491C
monochromatic
#100817 #130A1C #331A49 #532A76 #723AA3

Accessibility & contrast

On white

15.16
#331A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A49
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A49#FFFFFF#000000##FFFFFF
##331A491.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07254B
Deuteranopia (green-blind)
#122648
Tritanopia (blue-blind)
#2F232E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331a49;
/* rgb */ color: rgb(51, 26, 73);
/* oklch */ color: oklch(27.8% 0.086 306.1);
Tailwind
colors: {
  custom: {
    50: '#6d587c',
    500: '#331a49',
    950: '#000000',
  },
}
SCSS
$custom: #331a49;
$custom-light: #6d587c;
$custom-dark: #000000;
JSON
{
  "hex": "#331a49",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 73
  },
  "hsl": {
    "h": 271.915,
    "s": 47.475,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27769,
    "c": 0.08606,
    "h": 306.1
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#331A49
secondary
#5D7F40
accent
#D75190
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A49

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

Preview Lab → · Contrast checker → · Palette generator →

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