#320F56#320F56

#320F56 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.119 H 301.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#320F56
RGBrgb(50, 15, 86)
HSLhsl(270, 70%, 20%)
HSVhsv(270, 83%, 34%)
CMYKcmyk(41.9%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.78, 32.52, -35.66)
CIE-LCHlch(13.78, 48.26, 312.36°)
OKLaboklab(27.14% 0.0612 -0.1018)
OKLCHoklch(27.14% 0.119 301)
XYZxyz(3.1655, 1.6916, 8.9620)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F56 #33560F
analogous
#0F1056 #320F56 #550F56
triadic
#320F56 #56320F #0F5632
tetradic
#320F56 #560F10 #33560F #0F5655
square
#320F56 #560F10 #33560F #0F5655
split-complementary
#320F56 #56550F #10560F
monochromatic
#0F051A #140622 #320F56 #50188A #6F21BE

Accessibility & contrast

On white

15.69
#320F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#320F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F56
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F56#FFFFFF#000000##FFFFFF
##320F561.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#2A2232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #320f56;
/* rgb */ color: rgb(50, 15, 86);
/* oklch */ color: oklch(27.1% 0.119 301.0);
Tailwind
colors: {
  custom: {
    50: '#6e5286',
    500: '#320f56',
    950: '#000000',
  },
}
SCSS
$custom: #320f56;
$custom-light: #6e5286;
$custom-dark: #000000;
JSON
{
  "hex": "#320f56",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 269.577,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27142,
    "c": 0.11878,
    "h": 301
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#320F56
secondary
#619031
accent
#ED3B95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #320F56

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

Preview Lab → · Contrast checker → · Palette generator →

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