#320D58#320D58

#320D58 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.123 H 300.4°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#320D58
RGBrgb(50, 13, 88)
HSLhsl(270, 74%, 20%)
HSVhsv(270, 85%, 35%)
CMYKcmyk(43.2%, 85.2%, 0%, 65.5%)
CIE-LABlab(13.65, 33.98, -37.21)
CIE-LCHlch(13.65, 50.39, 312.39°)
OKLaboklab(27.11% 0.0624 -0.1064)
OKLCHoklch(27.11% 0.123 300.4)
XYZxyz(3.2203, 1.6705, 9.3834)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320D58 #33580D
analogous
#0D0E58 #320D58 #580D58
triadic
#320D58 #58320D #0D5832
tetradic
#320D58 #580D0E #33580D #0D5858
square
#320D58 #580D0E #33580D #0D5858
split-complementary
#320D58 #58580D #0E580D
monochromatic
#0F041B #140523 #320D58 #50158D #6F1DC3

Accessibility & contrast

On white

15.74
#320D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#320D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320D58
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320D58#FFFFFF#000000##FFFFFF
##320D581.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#292233
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #320d58;
/* rgb */ color: rgb(50, 13, 88);
/* oklch */ color: oklch(27.1% 0.123 300.4);
Tailwind
colors: {
  custom: {
    50: '#6f5188',
    500: '#320d58',
    950: '#000000',
  },
}
SCSS
$custom: #320d58;
$custom-light: #6f5188;
$custom-dark: #000000;
JSON
{
  "hex": "#320d58",
  "rgb": {
    "r": 50,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 269.6,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27114,
    "c": 0.12334,
    "h": 300.4
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#320D58
secondary
#61932E
accent
#F13795
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #320D58

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

Preview Lab → · Contrast checker → · Palette generator →

#320D58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva