#331973#331973

#331973 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.143 H 288.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#331973
RGBrgb(51, 25, 115)
HSLhsl(257, 64%, 27%)
HSVhsv(257, 78%, 45%)
CMYKcmyk(55.7%, 78.3%, 0%, 54.9%)
CIE-LABlab(18.53, 36.08, -47.04)
CIE-LCHlch(18.53, 59.29, 307.49°)
OKLaboklab(31.38% 0.0452 -0.1353)
OKLCHoklch(31.38% 0.143 288.5)
XYZxyz(4.8065, 2.6366, 16.4720)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331973 #597319
analogous
#192C73 #331973 #601973
triadic
#331973 #733319 #197333
tetradic
#331973 #73192C #597319 #197360
square
#331973 #73192C #597319 #197360
split-complementary
#331973 #736019 #2C7319
monochromatic
#0B0519 #1D0E41 #331973 #4924A5 #6234D3

Accessibility & contrast

On white

13.75
#331973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331973
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331973#FFFFFF#000000##FFFFFF
##3319731.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#1A3245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331973;
/* rgb */ color: rgb(51, 25, 115);
/* oklch */ color: oklch(31.4% 0.143 288.5);
Tailwind
colors: {
  custom: {
    50: '#73599c',
    500: '#331973',
    950: '#000000',
  },
}
SCSS
$custom: #331973;
$custom-light: #73599c;
$custom-dark: #000000;
JSON
{
  "hex": "#331973",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 257.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31376,
    "c": 0.14262,
    "h": 288.5
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#331973
secondary
#8AA840
accent
#E741B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331973

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

Preview Lab → · Contrast checker → · Palette generator →

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