#331574#331574

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

Color values

HEX#331574
RGBrgb(51, 21, 116)
HSLhsl(259, 69%, 27%)
HSVhsv(259, 82%, 45%)
CMYKcmyk(56%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.92, 38.40, -48.68)
CIE-LCHlch(17.92, 62.00, 308.27°)
OKLaboklab(30.99% 0.0481 -0.14)
OKLCHoklch(30.99% 0.148 289)
XYZxyz(4.7849, 2.5009, 16.7502)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331574 #567415
analogous
#152774 #331574 #631574
triadic
#331574 #743315 #157433
tetradic
#331574 #741527 #567415 #157463
square
#331574 #741527 #567415 #157463
split-complementary
#331574 #746315 #277415
monochromatic
#0B051A #1C0C40 #331574 #4A1EA8 #622BD9

Accessibility & contrast

On white

14.00
#331574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331574
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331574#FFFFFF#000000##FFFFFF
##3315741.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#193144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331574;
/* rgb */ color: rgb(51, 21, 116);
/* oklch */ color: oklch(31.0% 0.148 289.0);
Tailwind
colors: {
  custom: {
    50: '#73579d',
    500: '#331574',
    950: '#000000',
  },
}
SCSS
$custom: #331574;
$custom-light: #73579d;
$custom-dark: #000000;
JSON
{
  "hex": "#331574",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 258.947,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30986,
    "c": 0.14805,
    "h": 289
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#331574
secondary
#87AA3B
accent
#EC3CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331574

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

Preview Lab → · Contrast checker → · Palette generator →

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