#331A4B#331A4B

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

Color values

HEX#331A4B
RGBrgb(51, 26, 75)
HSLhsl(271, 49%, 20%)
HSVhsv(271, 65%, 29%)
CMYKcmyk(32%, 65.3%, 0%, 70.6%)
CIE-LABlab(15.23, 23.50, -25.80)
CIE-LCHlch(15.23, 34.89, 312.33°)
OKLaboklab(27.92% 0.0507 -0.0729)
OKLCHoklch(27.92% 0.089 304.8)
XYZxyz(3.0044, 1.9506, 6.8735)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A4B #324B1A
analogous
#1A1A4B #331A4B #4B1A4B
triadic
#331A4B #4B331A #1A4B33
tetradic
#331A4B #4B1A1A #324B1A #1A4B4B
square
#331A4B #4B1A1A #324B1A #1A4B4B
split-complementary
#331A4B #4B4B1A #1A4B1A
monochromatic
#0F0817 #140A1E #331A4B #522A78 #713AA6

Accessibility & contrast

On white

15.11
#331A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331A4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A4B
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A4B#FFFFFF#000000##FFFFFF
##331A4B1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05254D
Deuteranopia (green-blind)
#10264A
Tritanopia (blue-blind)
#2F242F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331a4b;
/* rgb */ color: rgb(51, 26, 75);
/* oklch */ color: oklch(27.9% 0.089 304.8);
Tailwind
colors: {
  custom: {
    50: '#6d587d',
    500: '#331a4b',
    950: '#000000',
  },
}
SCSS
$custom: #331a4b;
$custom-light: #6d587d;
$custom-dark: #000000;
JSON
{
  "hex": "#331a4b",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 270.612,
    "s": 48.515,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27921,
    "c": 0.0888,
    "h": 304.8
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#331A4B
secondary
#608140
accent
#D85093
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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