#331647#331647

#331647 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.090 H 308.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#331647
RGBrgb(51, 22, 71)
HSLhsl(276, 53%, 18%)
HSVhsv(276, 69%, 28%)
CMYKcmyk(28.2%, 69%, 0%, 72.2%)
CIE-LABlab(14.02, 24.84, -24.97)
CIE-LCHlch(14.02, 35.23, 314.85°)
OKLaboklab(26.95% 0.0567 -0.0704)
OKLCHoklch(26.95% 0.09 308.8)
XYZxyz(2.7893, 1.7326, 6.1475)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331647 #2A4716
analogous
#1A1647 #331647 #471642
triadic
#331647 #473316 #164733
tetradic
#331647 #471A16 #2A4716 #164247
square
#331647 #471A16 #2A4716 #164247
split-complementary
#331647 #424716 #16471A
monochromatic
#110717 #110818 #331647 #552476 #7633A4

Accessibility & contrast

On white

15.59
#331647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331647
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331647#FFFFFF#000000##FFFFFF
##3316471.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022249
Deuteranopia (green-blind)
#0F2446
Tritanopia (blue-blind)
#30202C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331647;
/* rgb */ color: rgb(51, 22, 71);
/* oklch */ color: oklch(26.9% 0.090 308.8);
Tailwind
colors: {
  custom: {
    50: '#6d557a',
    500: '#331647',
    950: '#000000',
  },
}
SCSS
$custom: #331647;
$custom-light: #6d557a;
$custom-dark: #000000;
JSON
{
  "hex": "#331647",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 71
  },
  "hsl": {
    "h": 275.51,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26946,
    "c": 0.09043,
    "h": 308.8
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#331647
secondary
#567E3A
accent
#DC4C87
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331647

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

Preview Lab → · Contrast checker → · Palette generator →

#331647 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva