#331373#331373

#331373 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.149 H 289.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#331373
RGBrgb(51, 19, 115)
HSLhsl(260, 72%, 26%)
HSVhsv(260, 83%, 45%)
CMYKcmyk(55.7%, 83.5%, 0%, 54.9%)
CIE-LABlab(17.49, 39.05, -48.74)
CIE-LCHlch(17.49, 62.45, 308.70°)
OKLaboklab(30.66% 0.0499 -0.1402)
OKLCHoklch(30.66% 0.149 289.6)
XYZxyz(4.6917, 2.4071, 16.4337)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331373 #537313
analogous
#132373 #331373 #631373
triadic
#331373 #733313 #137333
tetradic
#331373 #731323 #537313 #137363
square
#331373 #731323 #537313 #137363
split-complementary
#331373 #736313 #237313
monochromatic
#0C041A #1C0A3E #331373 #4A1CA8 #6225DB

Accessibility & contrast

On white

14.18
#331373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331373
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331373#FFFFFF#000000##FFFFFF
##3313731.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331373;
/* rgb */ color: rgb(51, 19, 115);
/* oklch */ color: oklch(30.7% 0.149 289.6);
Tailwind
colors: {
  custom: {
    50: '#73569c',
    500: '#331373',
    950: '#000000',
  },
}
SCSS
$custom: #331373;
$custom-light: #73569c;
$custom-dark: #000000;
JSON
{
  "hex": "#331373",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 260,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30656,
    "c": 0.14879,
    "h": 289.6
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#331373
secondary
#84AA38
accent
#EE39B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331373

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

Preview Lab → · Contrast checker → · Palette generator →

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