#331A3E#331A3E

#331A3E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.0% C 0.071 H 314.6°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#331A3E
RGBrgb(51, 26, 62)
HSLhsl(282, 41%, 17%)
HSVhsv(282, 58%, 24%)
CMYKcmyk(17.7%, 58.1%, 0%, 75.7%)
CIE-LABlab(14.35, 19.93, -18.16)
CIE-LCHlch(14.35, 26.96, 317.66°)
OKLaboklab(26.99% 0.0499 -0.0506)
OKLCHoklch(26.99% 0.071 314.6)
XYZxyz(2.6040, 1.7905, 4.7649)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A3E #253E1A
analogous
#211A3E #331A3E #3E1A37
triadic
#331A3E #3E331A #1A3E33
tetradic
#331A3E #3E211A #253E1A #1A373E
square
#331A3E #3E211A #253E1A #1A373E
split-complementary
#331A3E #373E1A #1A3E21
monochromatic
#120916 #120916 #331A3E #562C69 #7A3E94

Accessibility & contrast

On white

15.46
#331A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A3E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A3E#FFFFFF#000000##FFFFFF
##331A3E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#1A253D
Tritanopia (blue-blind)
#322029
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a3e;
/* rgb */ color: rgb(51, 26, 62);
/* oklch */ color: oklch(27.0% 0.071 314.6);
Tailwind
colors: {
  custom: {
    50: '#6c5773',
    500: '#331a3e',
    950: '#000000',
  },
}
SCSS
$custom: #331a3e;
$custom-light: #6c5773;
$custom-dark: #000000;
JSON
{
  "hex": "#331a3e",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 62
  },
  "hsl": {
    "h": 281.667,
    "s": 40.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26991,
    "c": 0.07105,
    "h": 314.6
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

primary
#331A3E
secondary
#507440
accent
#D1577C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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