#320F54#320F54

#320F54 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 302.0°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#320F54
RGBrgb(50, 15, 84)
HSLhsl(270, 70%, 19%)
HSVhsv(270, 82%, 33%)
CMYKcmyk(40.5%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.59, 31.97, -34.61)
CIE-LCHlch(13.59, 47.11, 312.73°)
OKLaboklab(26.95% 0.0617 -0.0987)
OKLCHoklch(26.95% 0.116 302)
XYZxyz(3.0861, 1.6598, 8.5436)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F54 #31540F
analogous
#100F54 #320F54 #540F54
triadic
#320F54 #54320F #0F5432
tetradic
#320F54 #54100F #31540F #0F5454
square
#320F54 #54100F #31540F #0F5454
split-complementary
#320F54 #54540F #0F5410
monochromatic
#0F051A #130620 #320F54 #511888 #7022BC

Accessibility & contrast

On white

15.77
#320F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F54
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F54#FFFFFF#000000##FFFFFF
##320F541.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#2B2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #320f54;
/* rgb */ color: rgb(50, 15, 84);
/* oklch */ color: oklch(27.0% 0.116 302.0);
Tailwind
colors: {
  custom: {
    50: '#6e5285',
    500: '#320f54',
    950: '#000000',
  },
}
SCSS
$custom: #320f54;
$custom-light: #6e5285;
$custom-dark: #000000;
JSON
{
  "hex": "#320f54",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 270.435,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26952,
    "c": 0.11643,
    "h": 302
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#320F54
secondary
#5F8E31
accent
#ED3B93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #320F54

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

Preview Lab → · Contrast checker → · Palette generator →

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