#331B41#331B41

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

Color values

HEX#331B41
RGBrgb(51, 27, 65)
HSLhsl(278, 41%, 18%)
HSVhsv(278, 58%, 25%)
CMYKcmyk(21.5%, 58.5%, 0%, 74.5%)
CIE-LABlab(14.79, 20.07, -19.57)
CIE-LCHlch(14.79, 28.03, 315.73°)
OKLaboklab(27.38% 0.0486 -0.0547)
OKLCHoklch(27.38% 0.073 311.6)
XYZxyz(2.7111, 1.8694, 5.2180)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B41 #29411B
analogous
#201B41 #331B41 #411B3C
triadic
#331B41 #41331B #1B4133
tetradic
#331B41 #41201B #29411B #1B3C41
square
#331B41 #41201B #29411B #1B3C41
split-complementary
#331B41 #3C411B #1B4120
monochromatic
#110916 #110916 #331B41 #552D6C #773F97

Accessibility & contrast

On white

15.29
#331B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B41
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B41#FFFFFF#000000##FFFFFF
##331B411.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112442
Deuteranopia (green-blind)
#192640
Tritanopia (blue-blind)
#31212B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331b41;
/* rgb */ color: rgb(51, 27, 65);
/* oklch */ color: oklch(27.4% 0.073 311.6);
Tailwind
colors: {
  custom: {
    50: '#6c5876',
    500: '#331b41',
    950: '#000000',
  },
}
SCSS
$custom: #331b41;
$custom-light: #6c5876;
$custom-dark: #000000;
JSON
{
  "hex": "#331b41",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 277.895,
    "s": 41.304,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27377,
    "c": 0.07315,
    "h": 311.6
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#331B41
secondary
#557641
accent
#D15784
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331B41

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

Preview Lab → · Contrast checker → · Palette generator →

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