#331671#331671

#331671 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.143 H 289.7°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#331671
RGBrgb(51, 22, 113)
HSLhsl(259, 67%, 26%)
HSVhsv(259, 81%, 44%)
CMYKcmyk(54.9%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.78, 37.02, -46.97)
CIE-LCHlch(17.78, 59.81, 308.25°)
OKLaboklab(30.79% 0.0483 -0.135)
OKLCHoklch(30.79% 0.143 289.7)
XYZxyz(4.6319, 2.4697, 15.8522)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331671 #547116
analogous
#162771 #331671 #611671
triadic
#331671 #713316 #167133
tetradic
#331671 #711627 #547116 #167161
square
#331671 #711627 #547116 #167161
split-complementary
#331671 #716116 #277116
monochromatic
#0C051A #1C0C3E #331671 #4A20A4 #622CD6

Accessibility & contrast

On white

14.06
#331671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331671
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331671#FFFFFF#000000##FFFFFF
##3316711.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#1C3043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331671;
/* rgb */ color: rgb(51, 22, 113);
/* oklch */ color: oklch(30.8% 0.143 289.7);
Tailwind
colors: {
  custom: {
    50: '#73579b',
    500: '#331671',
    950: '#000000',
  },
}
SCSS
$custom: #331671;
$custom-light: #73579b;
$custom-dark: #000000;
JSON
{
  "hex": "#331671",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 259.121,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30793,
    "c": 0.14341,
    "h": 289.7
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#331671
secondary
#85A73C
accent
#EA3EB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331671

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

Preview Lab → · Contrast checker → · Palette generator →

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