#331C46#331C46

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

Color values

HEX#331C46
RGBrgb(51, 28, 70)
HSLhsl(273, 43%, 19%)
HSVhsv(273, 60%, 27%)
CMYKcmyk(27.1%, 60%, 0%, 72.5%)
CIE-LABlab(15.36, 20.80, -22.13)
CIE-LCHlch(15.36, 30.37, 313.22°)
OKLaboklab(27.91% 0.0475 -0.0621)
OKLCHoklch(27.91% 0.078 307.4)
XYZxyz(2.8858, 1.9765, 6.0227)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C46 #2F461C
analogous
#1E1C46 #331C46 #461C44
triadic
#331C46 #46331C #1C4633
tetradic
#331C46 #461E1C #2F461C #1C4446
square
#331C46 #461E1C #2F461C #1C4446
split-complementary
#331C46 #44461C #1C461E
monochromatic
#100916 #130B1A #331C46 #532D72 #733F9D

Accessibility & contrast

On white

15.05
#331C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C46
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C46#FFFFFF#000000##FFFFFF
##331C461.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2647
Deuteranopia (green-blind)
#162745
Tritanopia (blue-blind)
#30242E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c46;
/* rgb */ color: rgb(51, 28, 70);
/* oklch */ color: oklch(27.9% 0.078 307.4);
Tailwind
colors: {
  custom: {
    50: '#6c597a',
    500: '#331c46',
    950: '#000000',
  },
}
SCSS
$custom: #331c46;
$custom-light: #6c597a;
$custom-dark: #000000;
JSON
{
  "hex": "#331c46",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 70
  },
  "hsl": {
    "h": 272.857,
    "s": 42.857,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27909,
    "c": 0.07819,
    "h": 307.4
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#331C46
secondary
#5C7B42
accent
#D3558E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C46

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

Preview Lab → · Contrast checker → · Palette generator →

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