#331A41#331A41

#331A41 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.075 H 312.0°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#331A41
RGBrgb(51, 26, 65)
HSLhsl(278, 43%, 18%)
HSVhsv(278, 60%, 25%)
CMYKcmyk(21.5%, 60%, 0%, 74.5%)
CIE-LABlab(14.54, 20.72, -19.96)
CIE-LCHlch(14.54, 28.77, 316.07°)
OKLaboklab(27.19% 0.0503 -0.0558)
OKLCHoklch(27.19% 0.075 312)
XYZxyz(2.6886, 1.8243, 5.2105)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A41 #28411A
analogous
#201A41 #331A41 #411A3B
triadic
#331A41 #41331A #1A4133
tetradic
#331A41 #41201A #28411A #1A3B41
square
#331A41 #41201A #28411A #1A3B41
split-complementary
#331A41 #3B411A #1A4120
monochromatic
#110916 #110916 #331A41 #552B6D #783D98

Accessibility & contrast

On white

15.39
#331A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A41
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A41#FFFFFF#000000##FFFFFF
##331A411.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102342
Deuteranopia (green-blind)
#182540
Tritanopia (blue-blind)
#32202A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331a41;
/* rgb */ color: rgb(51, 26, 65);
/* oklch */ color: oklch(27.2% 0.075 312.0);
Tailwind
colors: {
  custom: {
    50: '#6c5776',
    500: '#331a41',
    950: '#000000',
  },
}
SCSS
$custom: #331a41;
$custom-light: #6c5776;
$custom-dark: #000000;
JSON
{
  "hex": "#331a41",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 278.462,
    "s": 42.857,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27193,
    "c": 0.07511,
    "h": 312
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#331A41
secondary
#547740
accent
#D35582
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331A41

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

Preview Lab → · Contrast checker → · Palette generator →

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