#320F51#320F51

#320F51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.113 H 303.6°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#320F51
RGBrgb(50, 15, 81)
HSLhsl(272, 69%, 19%)
HSVhsv(272, 81%, 32%)
CMYKcmyk(38.3%, 81.5%, 0%, 68.2%)
CIE-LABlab(13.31, 31.15, -33.01)
CIE-LCHlch(13.31, 45.39, 313.34°)
OKLaboklab(26.67% 0.0625 -0.094)
OKLCHoklch(26.67% 0.113 303.6)
XYZxyz(2.9711, 1.6138, 7.9380)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F51 #2E510F
analogous
#110F51 #320F51 #510F4F
triadic
#320F51 #51320F #0F5132
tetradic
#320F51 #51110F #2E510F #0F4F51
square
#320F51 #51110F #2E510F #0F4F51
split-complementary
#320F51 #4F510F #0F5111
monochromatic
#10051A #12051D #320F51 #521985 #7222B8

Accessibility & contrast

On white

15.88
#320F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#320F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F51
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F51#FFFFFF#000000##FFFFFF
##320F511.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2C202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #320f51;
/* rgb */ color: rgb(50, 15, 81);
/* oklch */ color: oklch(26.7% 0.113 303.6);
Tailwind
colors: {
  custom: {
    50: '#6e5182',
    500: '#320f51',
    950: '#000000',
  },
}
SCSS
$custom: #320f51;
$custom-light: #6e5182;
$custom-dark: #000000;
JSON
{
  "hex": "#320f51",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 271.818,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26672,
    "c": 0.11292,
    "h": 303.6
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#320F51
secondary
#5B8B31
accent
#EC3C8F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320F51

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

Preview Lab → · Contrast checker → · Palette generator →

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