#331673#331673

#331673 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.146 H 289.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#331673
RGBrgb(51, 22, 115)
HSLhsl(259, 68%, 27%)
HSVhsv(259, 81%, 45%)
CMYKcmyk(55.7%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.99, 37.62, -47.93)
CIE-LCHlch(17.99, 60.93, 308.13°)
OKLaboklab(31% 0.0477 -0.1378)
OKLCHoklch(31% 0.146 289.1)
XYZxyz(4.7458, 2.5152, 16.4518)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331673 #567316
analogous
#162773 #331673 #621673
triadic
#331673 #733316 #167333
tetradic
#331673 #731627 #567316 #167362
square
#331673 #731627 #567316 #167362
split-complementary
#331673 #736216 #277316
monochromatic
#0B051A #1C0C40 #331673 #4A20A6 #622DD7

Accessibility & contrast

On white

13.97
#331673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331673
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331673#FFFFFF#000000##FFFFFF
##3316731.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#1A3144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331673;
/* rgb */ color: rgb(51, 22, 115);
/* oklch */ color: oklch(31.0% 0.146 289.1);
Tailwind
colors: {
  custom: {
    50: '#73579c',
    500: '#331673',
    950: '#000000',
  },
}
SCSS
$custom: #331673;
$custom-light: #73579c;
$custom-dark: #000000;
JSON
{
  "hex": "#331673",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 258.71,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30999,
    "c": 0.14584,
    "h": 289.1
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#331673
secondary
#87A93C
accent
#EB3DB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331673

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

Preview Lab → · Contrast checker → · Palette generator →

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