#331A46#331A46

#331A46 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.082 H 308.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#331A46
RGBrgb(51, 26, 70)
HSLhsl(274, 46%, 19%)
HSVhsv(274, 63%, 27%)
CMYKcmyk(27.1%, 62.9%, 0%, 72.5%)
CIE-LABlab(14.87, 22.09, -22.91)
CIE-LCHlch(14.87, 31.83, 313.95°)
OKLaboklab(27.55% 0.0506 -0.0644)
OKLCHoklch(27.55% 0.082 308.2)
XYZxyz(2.8399, 1.8848, 6.0074)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A46 #2D461A
analogous
#1D1A46 #331A46 #461A43
triadic
#331A46 #46331A #1A4633
tetradic
#331A46 #461D1A #2D461A #1A4346
square
#331A46 #461D1A #2D461A #1A4346
split-complementary
#331A46 #43461A #1A461D
monochromatic
#100816 #120919 #331A46 #542B73 #743B9F

Accessibility & contrast

On white

15.25
#331A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A46
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A46#FFFFFF#000000##FFFFFF
##331A461.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2447
Deuteranopia (green-blind)
#142645
Tritanopia (blue-blind)
#30222D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331a46;
/* rgb */ color: rgb(51, 26, 70);
/* oklch */ color: oklch(27.5% 0.082 308.2);
Tailwind
colors: {
  custom: {
    50: '#6c587a',
    500: '#331a46',
    950: '#000000',
  },
}
SCSS
$custom: #331a46;
$custom-light: #6c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#331a46",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 70
  },
  "hsl": {
    "h": 274.091,
    "s": 45.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27547,
    "c": 0.08194,
    "h": 308.2
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#331A46
secondary
#5A7C40
accent
#D5528B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A46

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

Preview Lab → · Contrast checker → · Palette generator →

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