#331C49#331C49

#331C49 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.082 H 305.3°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#331C49
RGBrgb(51, 28, 73)
HSLhsl(271, 45%, 20%)
HSVhsv(271, 62%, 29%)
CMYKcmyk(30.1%, 61.6%, 0%, 71.4%)
CIE-LABlab(15.57, 21.64, -23.87)
CIE-LCHlch(15.57, 32.22, 312.20°)
OKLaboklab(28.13% 0.0476 -0.0672)
OKLCHoklch(28.13% 0.082 305.3)
XYZxyz(2.9828, 2.0154, 6.5339)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C49 #32491C
analogous
#1D1C49 #331C49 #491C48
triadic
#331C49 #49331C #1C4933
tetradic
#331C49 #491D1C #32491C #1C4849
square
#331C49 #491D1C #32491C #1C4849
split-complementary
#331C49 #48491C #1C491D
monochromatic
#0F0816 #140B1D #331C49 #522D75 #713EA1

Accessibility & contrast

On white

14.97
#331C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C49
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C49#FFFFFF#000000##FFFFFF
##331C491.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C264A
Deuteranopia (green-blind)
#142748
Tritanopia (blue-blind)
#2F242F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c49;
/* rgb */ color: rgb(51, 28, 73);
/* oklch */ color: oklch(28.1% 0.082 305.3);
Tailwind
colors: {
  custom: {
    50: '#6c597c',
    500: '#331c49',
    950: '#000000',
  },
}
SCSS
$custom: #331c49;
$custom-light: #6c597c;
$custom-dark: #000000;
JSON
{
  "hex": "#331c49",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 73
  },
  "hsl": {
    "h": 270.667,
    "s": 44.554,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28126,
    "c": 0.08241,
    "h": 305.3
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#331C49
secondary
#607E42
accent
#D45492
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C49

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

Preview Lab → · Contrast checker → · Palette generator →

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