#331A44#331A44

#331A44 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.079 H 309.6°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#331A44
RGBrgb(51, 26, 68)
HSLhsl(276, 45%, 18%)
HSVhsv(276, 62%, 27%)
CMYKcmyk(25%, 61.8%, 0%, 73.3%)
CIE-LABlab(14.73, 21.54, -21.74)
CIE-LCHlch(14.73, 30.60, 314.73°)
OKLaboklab(27.4% 0.0505 -0.061)
OKLCHoklch(27.4% 0.079 309.6)
XYZxyz(2.7778, 1.8600, 5.6804)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A44 #2B441A
analogous
#1E1A44 #331A44 #441A40
triadic
#331A44 #44331A #1A4433
tetradic
#331A44 #441E1A #2B441A #1A4044
square
#331A44 #441E1A #2B441A #1A4044
split-complementary
#331A44 #40441A #1A441E
monochromatic
#110816 #120918 #331A44 #542B70 #753C9D

Accessibility & contrast

On white

15.31
#331A44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331A44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A44
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A44#FFFFFF#000000##FFFFFF
##331A441.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2445
Deuteranopia (green-blind)
#162643
Tritanopia (blue-blind)
#31212C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331a44;
/* rgb */ color: rgb(51, 26, 68);
/* oklch */ color: oklch(27.4% 0.079 309.6);
Tailwind
colors: {
  custom: {
    50: '#6c5778',
    500: '#331a44',
    950: '#000000',
  },
}
SCSS
$custom: #331a44;
$custom-light: #6c5778;
$custom-dark: #000000;
JSON
{
  "hex": "#331a44",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 68
  },
  "hsl": {
    "h": 275.714,
    "s": 44.681,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27403,
    "c": 0.0792,
    "h": 309.6
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#331A44
secondary
#577A40
accent
#D45388
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A44

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

Preview Lab → · Contrast checker → · Palette generator →

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