#331473#331473

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

Color values

HEX#331473
RGBrgb(51, 20, 115)
HSLhsl(260, 70%, 26%)
HSVhsv(260, 83%, 45%)
CMYKcmyk(55.7%, 82.6%, 0%, 54.9%)
CIE-LABlab(17.65, 38.58, -48.48)
CIE-LCHlch(17.65, 61.96, 308.52°)
OKLaboklab(30.77% 0.0492 -0.1394)
OKLCHoklch(30.77% 0.148 289.4)
XYZxyz(4.7090, 2.4417, 16.4395)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331473 #547314
analogous
#142573 #331473 #631473
triadic
#331473 #733314 #147333
tetradic
#331473 #731425 #547314 #147363
square
#331473 #731425 #547314 #147363
split-complementary
#331473 #736314 #257314
monochromatic
#0C051A #1C0B3F #331473 #4A1DA7 #6228DA

Accessibility & contrast

On white

14.11
#331473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331473
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331473#FFFFFF#000000##FFFFFF
##3314731.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#1A3044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331473;
/* rgb */ color: rgb(51, 20, 115);
/* oklch */ color: oklch(30.8% 0.148 289.4);
Tailwind
colors: {
  custom: {
    50: '#73569c',
    500: '#331473',
    950: '#000000',
  },
}
SCSS
$custom: #331473;
$custom-light: #73569c;
$custom-dark: #000000;
JSON
{
  "hex": "#331473",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 259.579,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30767,
    "c": 0.14783,
    "h": 289.4
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#331473
secondary
#85A93A
accent
#ED3BB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331473

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

Preview Lab → · Contrast checker → · Palette generator →

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