#331879#331879

#331879 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.151 H 287.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#331879
RGBrgb(51, 24, 121)
HSLhsl(257, 67%, 28%)
HSVhsv(257, 80%, 47%)
CMYKcmyk(57.9%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.96, 38.42, -50.18)
CIE-LCHlch(18.96, 63.20, 307.44°)
OKLaboklab(31.87% 0.0443 -0.1444)
OKLCHoklch(31.87% 0.151 287)
XYZxyz(5.1420, 2.7373, 18.3428)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331879 #5E7918
analogous
#182D79 #331879 #631879
triadic
#331879 #793318 #187933
tetradic
#331879 #79182D #5E7918 #187963
square
#331879 #79182D #5E7918 #187963
split-complementary
#331879 #796318 #2D7918
monochromatic
#0B051A #1D0E46 #331879 #4922AC #6235D7

Accessibility & contrast

On white

13.57
#331879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331879
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331879#FFFFFF#000000##FFFFFF
##3318791.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331879;
/* rgb */ color: rgb(51, 24, 121);
/* oklch */ color: oklch(31.9% 0.151 287.0);
Tailwind
colors: {
  custom: {
    50: '#7459a1',
    500: '#331879',
    950: '#000000',
  },
}
SCSS
$custom: #331879;
$custom-light: #7459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#331879",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 256.701,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.15108,
    "h": 287
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#331879
secondary
#8FAE3F
accent
#EA3EBA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #331879

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

Preview Lab → · Contrast checker → · Palette generator →

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