#331374#331374

#331374 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.150 H 289.3°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#331374
RGBrgb(51, 19, 116)
HSLhsl(260, 72%, 26%)
HSVhsv(260, 84%, 45%)
CMYKcmyk(56%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.60, 39.34, -49.21)
CIE-LCHlch(17.60, 63.00, 308.64°)
OKLaboklab(30.76% 0.0496 -0.1415)
OKLCHoklch(30.76% 0.15 289.3)
XYZxyz(4.7496, 2.4303, 16.7384)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331374 #547413
analogous
#132474 #331374 #641374
triadic
#331374 #743313 #137433
tetradic
#331374 #741324 #547413 #137464
square
#331374 #741324 #547413 #137464
split-complementary
#331374 #746413 #247413
monochromatic
#0C041A #1C0A3F #331374 #4A1CA9 #6226DB

Accessibility & contrast

On white

14.13
#331374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331374
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331374#FFFFFF#000000##FFFFFF
##3313741.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#193044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331374;
/* rgb */ color: rgb(51, 19, 116);
/* oklch */ color: oklch(30.8% 0.150 289.3);
Tailwind
colors: {
  custom: {
    50: '#73569d',
    500: '#331374',
    950: '#000000',
  },
}
SCSS
$custom: #331374;
$custom-light: #73569d;
$custom-dark: #000000;
JSON
{
  "hex": "#331374",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 259.794,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30762,
    "c": 0.14997,
    "h": 289.3
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#331374
secondary
#85AA38
accent
#EF39B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331374

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

Preview Lab → · Contrast checker → · Palette generator →

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