#331C44#331C44

#331C44 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.075 H 308.8°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#331C44
RGBrgb(51, 28, 68)
HSLhsl(275, 42%, 19%)
HSVhsv(275, 59%, 27%)
CMYKcmyk(25%, 58.8%, 0%, 73.3%)
CIE-LABlab(15.23, 20.24, -20.95)
CIE-LCHlch(15.23, 29.13, 314.01°)
OKLaboklab(27.77% 0.0473 -0.0587)
OKLCHoklch(27.77% 0.075 308.8)
XYZxyz(2.8237, 1.9517, 5.6957)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C44 #2D441C
analogous
#1F1C44 #331C44 #441C41
triadic
#331C44 #44331C #1C4433
tetradic
#331C44 #441F1C #2D441C #1C4144
square
#331C44 #441F1C #2D441C #1C4144
split-complementary
#331C44 #41441C #1C441F
monochromatic
#100916 #120A19 #331C44 #542E6F #74409B

Accessibility & contrast

On white

15.10
#331C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C44
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C44#FFFFFF#000000##FFFFFF
##331C441.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112545
Deuteranopia (green-blind)
#182643
Tritanopia (blue-blind)
#31232D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c44;
/* rgb */ color: rgb(51, 28, 68);
/* oklch */ color: oklch(27.8% 0.075 308.8);
Tailwind
colors: {
  custom: {
    50: '#6c5978',
    500: '#331c44',
    950: '#000000',
  },
}
SCSS
$custom: #331c44;
$custom-light: #6c5978;
$custom-dark: #000000;
JSON
{
  "hex": "#331c44",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 68
  },
  "hsl": {
    "h": 274.5,
    "s": 41.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27769,
    "c": 0.07538,
    "h": 308.8
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#331C44
secondary
#5A7943
accent
#D1568B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C44

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

Preview Lab → · Contrast checker → · Palette generator →

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