#331A73#331A73

#331A73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 288.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#331A73
RGBrgb(51, 26, 115)
HSLhsl(257, 63%, 28%)
HSVhsv(257, 77%, 45%)
CMYKcmyk(55.7%, 77.4%, 0%, 54.9%)
CIE-LABlab(18.71, 35.54, -46.73)
CIE-LCHlch(18.71, 58.71, 307.26°)
OKLaboklab(31.51% 0.0444 -0.1344)
OKLCHoklch(31.51% 0.142 288.3)
XYZxyz(4.8282, 2.6802, 16.4792)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A73 #5A731A
analogous
#1A2D73 #331A73 #601A73
triadic
#331A73 #73331A #1A7333
tetradic
#331A73 #731A2D #5A731A #1A7360
square
#331A73 #731A2D #5A731A #1A7360
split-complementary
#331A73 #73601A #2D731A
monochromatic
#0B0619 #1D0F41 #331A73 #4925A5 #6236D2

Accessibility & contrast

On white

13.67
#331A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A73
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A73#FFFFFF#000000##FFFFFF
##331A731.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331a73;
/* rgb */ color: rgb(51, 26, 115);
/* oklch */ color: oklch(31.5% 0.141 288.3);
Tailwind
colors: {
  custom: {
    50: '#73599c',
    500: '#331a73',
    950: '#000000',
  },
}
SCSS
$custom: #331a73;
$custom-light: #73599c;
$custom-dark: #000000;
JSON
{
  "hex": "#331a73",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 256.854,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.1415,
    "h": 288.3
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#331A73
secondary
#8BA841
accent
#E642B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331A73

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

Preview Lab → · Contrast checker → · Palette generator →

#331A73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva