#331474#331474

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

Color values

HEX#331474
RGBrgb(51, 20, 116)
HSLhsl(259, 71%, 27%)
HSVhsv(259, 83%, 45%)
CMYKcmyk(56%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.76, 38.88, -48.95)
CIE-LCHlch(17.76, 62.51, 308.46°)
OKLaboklab(30.87% 0.0489 -0.1408)
OKLCHoklch(30.87% 0.149 289.1)
XYZxyz(4.7669, 2.4648, 16.7442)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331474 #557414
analogous
#142574 #331474 #631474
triadic
#331474 #743314 #147433
tetradic
#331474 #741425 #557414 #147463
square
#331474 #741425 #557414 #147463
split-complementary
#331474 #746314 #257414
monochromatic
#0B051A #1C0B40 #331474 #4A1DA8 #6228DA

Accessibility & contrast

On white

14.07
#331474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331474
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331474#FFFFFF#000000##FFFFFF
##3314741.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.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: #331474;
/* rgb */ color: rgb(51, 20, 116);
/* oklch */ color: oklch(30.9% 0.149 289.1);
Tailwind
colors: {
  custom: {
    50: '#73569d',
    500: '#331474',
    950: '#000000',
  },
}
SCSS
$custom: #331474;
$custom-light: #73569d;
$custom-dark: #000000;
JSON
{
  "hex": "#331474",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 259.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30872,
    "c": 0.14902,
    "h": 289.1
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#331474
secondary
#86AA3A
accent
#ED3AB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331474

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

Preview Lab → · Contrast checker → · Palette generator →

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