#331545#331545

#331545 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.090 H 310.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#331545
RGBrgb(51, 21, 69)
HSLhsl(278, 53%, 18%)
HSVhsv(278, 70%, 27%)
CMYKcmyk(26.1%, 69.6%, 0%, 72.9%)
CIE-LABlab(13.65, 24.90, -24.17)
CIE-LCHlch(13.65, 34.70, 315.85°)
OKLaboklab(26.63% 0.0582 -0.0681)
OKLCHoklch(26.63% 0.09 310.5)
XYZxyz(2.7074, 1.6699, 5.8088)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331545 #274515
analogous
#1B1545 #331545 #45153F
triadic
#331545 #453315 #154533
tetradic
#331545 #451B15 #274515 #153F45
square
#331545 #451B15 #274515 #153F45
split-complementary
#331545 #3F4515 #15451B
monochromatic
#110717 #110717 #331545 #562374 #7832A3

Accessibility & contrast

On white

15.74
#331545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331545
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331545#FFFFFF#000000##FFFFFF
##3315451.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022146
Deuteranopia (green-blind)
#102344
Tritanopia (blue-blind)
#311E2A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331545;
/* rgb */ color: rgb(51, 21, 69);
/* oklch */ color: oklch(26.6% 0.090 310.5);
Tailwind
colors: {
  custom: {
    50: '#6d5479',
    500: '#331545',
    950: '#000000',
  },
}
SCSS
$custom: #331545;
$custom-light: #6d5479;
$custom-dark: #000000;
JSON
{
  "hex": "#331545",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 277.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26633,
    "c": 0.08957,
    "h": 310.5
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#331545
secondary
#527D39
accent
#DD4B82
background
#F6F4F7
surface
#ECE8ED
border
#C7C4C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331545

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

Preview Lab → · Contrast checker → · Palette generator →

#331545 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva