#331672#331672

#331672 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.145 H 289.4°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#331672
RGBrgb(51, 22, 114)
HSLhsl(259, 68%, 27%)
HSVhsv(259, 81%, 45%)
CMYKcmyk(55.3%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.88, 37.32, -47.45)
CIE-LCHlch(17.88, 60.37, 308.19°)
OKLaboklab(30.9% 0.048 -0.1364)
OKLCHoklch(30.9% 0.145 289.4)
XYZxyz(4.6885, 2.4923, 16.1503)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331672 #557216
analogous
#162772 #331672 #611672
triadic
#331672 #723316 #167233
tetradic
#331672 #721627 #557216 #167261
square
#331672 #721627 #557216 #167261
split-complementary
#331672 #726116 #277216
monochromatic
#0B051A #1C0C3F #331672 #4A20A5 #622CD6

Accessibility & contrast

On white

14.01
#331672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331672
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331672#FFFFFF#000000##FFFFFF
##3316721.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#1B3043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331672;
/* rgb */ color: rgb(51, 22, 114);
/* oklch */ color: oklch(30.9% 0.145 289.4);
Tailwind
colors: {
  custom: {
    50: '#73579b',
    500: '#331672',
    950: '#000000',
  },
}
SCSS
$custom: #331672;
$custom-light: #73579b;
$custom-dark: #000000;
JSON
{
  "hex": "#331672",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 258.913,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.14462,
    "h": 289.4
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#331672
secondary
#86A83C
accent
#EB3DB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331672

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

Preview Lab → · Contrast checker → · Palette generator →

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