#320C50#320C50

#320C50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.115 H 304.8°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#320C50
RGBrgb(50, 12, 80)
HSLhsl(274, 74%, 18%)
HSVhsv(274, 85%, 31%)
CMYKcmyk(37.5%, 85%, 0%, 68.6%)
CIE-LABlab(12.74, 32.28, -33.26)
CIE-LCHlch(12.74, 46.35, 314.14°)
OKLaboklab(26.24% 0.0658 -0.0948)
OKLCHoklch(26.24% 0.115 304.8)
XYZxyz(2.8945, 1.5203, 7.7288)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C50 #2A500C
analogous
#100C50 #320C50 #500C4C
triadic
#320C50 #50320C #0C5032
tetradic
#320C50 #50100C #2A500C #0C4C50
square
#320C50 #50100C #2A500C #0C4C50
split-complementary
#320C50 #4C500C #0C5010
monochromatic
#11041B #11041B #320C50 #531485 #751CBA

Accessibility & contrast

On white

16.10
#320C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#320C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C50
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C50#FFFFFF#000000##FFFFFF
##320C501.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#2C1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320c50;
/* rgb */ color: rgb(50, 12, 80);
/* oklch */ color: oklch(26.2% 0.115 304.8);
Tailwind
colors: {
  custom: {
    50: '#6e5082',
    500: '#320c50',
    950: '#000000',
  },
}
SCSS
$custom: #320c50;
$custom-light: #6e5082;
$custom-dark: #000000;
JSON
{
  "hex": "#320c50",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 273.529,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26237,
    "c": 0.11538,
    "h": 304.8
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#320C50
secondary
#568B2C
accent
#F13789
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C50

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

Preview Lab → · Contrast checker → · Palette generator →

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