#320E51#320E51

#320E51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.114 H 303.8°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#320E51
RGBrgb(50, 14, 81)
HSLhsl(272, 71%, 19%)
HSVhsv(272, 83%, 32%)
CMYKcmyk(38.3%, 82.7%, 0%, 68.2%)
CIE-LABlab(13.15, 31.63, -33.28)
CIE-LCHlch(13.15, 45.91, 313.54°)
OKLaboklab(26.55% 0.0635 -0.0948)
OKLCHoklch(26.55% 0.114 303.8)
XYZxyz(2.9573, 1.5863, 7.9334)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320E51 #2D510E
analogous
#100E51 #320E51 #510E4E
triadic
#320E51 #51320E #0E5132
tetradic
#320E51 #51100E #2D510E #0E4E51
square
#320E51 #51100E #2D510E #0E4E51
split-complementary
#320E51 #4E510E #0E5110
monochromatic
#10051A #12051D #320E51 #521785 #7220B9

Accessibility & contrast

On white

15.94
#320E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320E51
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320E51#FFFFFF#000000##FFFFFF
##320E511.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #320e51;
/* rgb */ color: rgb(50, 14, 81);
/* oklch */ color: oklch(26.6% 0.114 303.8);
Tailwind
colors: {
  custom: {
    50: '#6e5182',
    500: '#320e51',
    950: '#000000',
  },
}
SCSS
$custom: #320e51;
$custom-light: #6e5182;
$custom-dark: #000000;
JSON
{
  "hex": "#320e51",
  "rgb": {
    "r": 50,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 272.239,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26553,
    "c": 0.11415,
    "h": 303.8
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#320E51
secondary
#5A8C2F
accent
#ED3A8D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320E51

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

Preview Lab → · Contrast checker → · Palette generator →

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