#331C43#331C43

#331C43 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.074 H 309.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#331C43
RGBrgb(51, 28, 67)
HSLhsl(275, 41%, 19%)
HSVhsv(275, 58%, 26%)
CMYKcmyk(23.9%, 58.2%, 0%, 73.7%)
CIE-LABlab(15.17, 19.96, -20.36)
CIE-LCHlch(15.17, 28.51, 314.44°)
OKLaboklab(27.7% 0.0472 -0.057)
OKLCHoklch(27.7% 0.074 309.6)
XYZxyz(2.7934, 1.9396, 5.5363)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C43 #2C431C
analogous
#1F1C43 #331C43 #431C3F
triadic
#331C43 #43331C #1C4333
tetradic
#331C43 #431F1C #2C431C #1C3F43
square
#331C43 #431F1C #2C431C #1C3F43
split-complementary
#331C43 #3F431C #1C431F
monochromatic
#100916 #120A18 #331C43 #542E6E #754099

Accessibility & contrast

On white

15.13
#331C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C43
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C43#FFFFFF#000000##FFFFFF
##331C431.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112544
Deuteranopia (green-blind)
#182642
Tritanopia (blue-blind)
#31232C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c43;
/* rgb */ color: rgb(51, 28, 67);
/* oklch */ color: oklch(27.7% 0.074 309.6);
Tailwind
colors: {
  custom: {
    50: '#6c5977',
    500: '#331c43',
    950: '#000000',
  },
}
SCSS
$custom: #331c43;
$custom-light: #6c5977;
$custom-dark: #000000;
JSON
{
  "hex": "#331c43",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 67
  },
  "hsl": {
    "h": 275.385,
    "s": 41.053,
    "l": 18.627
  },
  "oklch": {
    "l": 0.277,
    "c": 0.07397,
    "h": 309.6
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#331C43
secondary
#597843
accent
#D15789
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C43

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

Preview Lab → · Contrast checker → · Palette generator →

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