#331C47#331C47

#331C47 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.080 H 306.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#331C47
RGBrgb(51, 28, 71)
HSLhsl(272, 43%, 19%)
HSVhsv(272, 61%, 28%)
CMYKcmyk(28.2%, 60.6%, 0%, 72.2%)
CIE-LABlab(15.43, 21.08, -22.71)
CIE-LCHlch(15.43, 30.98, 312.86°)
OKLaboklab(27.98% 0.0475 -0.0638)
OKLCHoklch(27.98% 0.08 306.7)
XYZxyz(2.9176, 1.9893, 6.1903)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C47 #30471C
analogous
#1E1C47 #331C47 #471C46
triadic
#331C47 #47331C #1C4733
tetradic
#331C47 #471E1C #30471C #1C4647
square
#331C47 #471E1C #30471C #1C4647
split-complementary
#331C47 #46471C #1C471E
monochromatic
#100916 #130B1B #331C47 #532D73 #723F9F

Accessibility & contrast

On white

15.02
#331C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C47
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C47#FFFFFF#000000##FFFFFF
##331C471.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#162746
Tritanopia (blue-blind)
#30242E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c47;
/* rgb */ color: rgb(51, 28, 71);
/* oklch */ color: oklch(28.0% 0.080 306.7);
Tailwind
colors: {
  custom: {
    50: '#6c597a',
    500: '#331c47',
    950: '#000000',
  },
}
SCSS
$custom: #331c47;
$custom-light: #6c597a;
$custom-dark: #000000;
JSON
{
  "hex": "#331c47",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 71
  },
  "hsl": {
    "h": 272.093,
    "s": 43.434,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27981,
    "c": 0.0796,
    "h": 306.7
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#331C47
secondary
#5D7C42
accent
#D3558F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C47

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

Preview Lab → · Contrast checker → · Palette generator →

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