#331979#331979

#331979 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 286.8°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#331979
RGBrgb(51, 25, 121)
HSLhsl(256, 66%, 29%)
HSVhsv(256, 79%, 47%)
CMYKcmyk(57.9%, 79.3%, 0%, 52.5%)
CIE-LABlab(19.14, 37.91, -49.89)
CIE-LCHlch(19.14, 62.66, 307.23°)
OKLaboklab(31.99% 0.0435 -0.1436)
OKLCHoklch(31.99% 0.15 286.8)
XYZxyz(5.1630, 2.7793, 18.3498)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331979 #5F7919
analogous
#192F79 #331979 #631979
triadic
#331979 #793319 #197933
tetradic
#331979 #79192F #5F7919 #197963
square
#331979 #79192F #5F7919 #197963
split-complementary
#331979 #796319 #2F7919
monochromatic
#0B0519 #1E0F46 #331979 #4823AC #6237D6

Accessibility & contrast

On white

13.50
#331979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#331979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331979
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331979#FFFFFF#000000##FFFFFF
##3319791.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#133448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331979;
/* rgb */ color: rgb(51, 25, 121);
/* oklch */ color: oklch(32.0% 0.150 286.8);
Tailwind
colors: {
  custom: {
    50: '#7459a1',
    500: '#331979',
    950: '#000000',
  },
}
SCSS
$custom: #331979;
$custom-light: #7459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#331979",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 256.25,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31991,
    "c": 0.15004,
    "h": 286.8
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#331979
secondary
#90AE40
accent
#E93FBB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331979

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

Preview Lab → · Contrast checker → · Palette generator →

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