#331D43#331D43

#331D43 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.072 H 309.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#331D43
RGBrgb(51, 29, 67)
HSLhsl(275, 40%, 19%)
HSVhsv(275, 57%, 26%)
CMYKcmyk(23.9%, 56.7%, 0%, 73.7%)
CIE-LABlab(15.42, 19.30, -19.95)
CIE-LCHlch(15.42, 27.76, 314.05°)
OKLaboklab(27.89% 0.0455 -0.0558)
OKLCHoklch(27.89% 0.072 309.2)
XYZxyz(2.8175, 1.9878, 5.5444)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D43 #2D431D
analogous
#201D43 #331D43 #431D40
triadic
#331D43 #43331D #1D4333
tetradic
#331D43 #43201D #2D431D #1D4043
square
#331D43 #43201D #2D431D #1D4043
split-complementary
#331D43 #40431D #1D4320
monochromatic
#100915 #120B18 #331D43 #542F6E #744298

Accessibility & contrast

On white

15.03
#331D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331D43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D43
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D43#FFFFFF#000000##FFFFFF
##331D431.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132644
Deuteranopia (green-blind)
#192742
Tritanopia (blue-blind)
#31232C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331d43;
/* rgb */ color: rgb(51, 29, 67);
/* oklch */ color: oklch(27.9% 0.072 309.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a77',
    500: '#331d43',
    950: '#000000',
  },
}
SCSS
$custom: #331d43;
$custom-light: #6c5a77;
$custom-dark: #000000;
JSON
{
  "hex": "#331d43",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 67
  },
  "hsl": {
    "h": 274.737,
    "s": 39.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2789,
    "c": 0.07201,
    "h": 309.2
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#331D43
secondary
#5A7844
accent
#CF588A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331D43

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

Preview Lab → · Contrast checker → · Palette generator →

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