#320F48#320F48

#320F48 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.102 H 309.0°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#320F48
RGBrgb(50, 15, 72)
HSLhsl(277, 66%, 17%)
HSVhsv(277, 79%, 28%)
CMYKcmyk(30.6%, 79.2%, 0%, 71.8%)
CIE-LABlab(12.53, 28.75, -28.07)
CIE-LCHlch(12.53, 40.18, 315.68°)
OKLaboklab(25.87% 0.0644 -0.0795)
OKLCHoklch(25.87% 0.102 309)
XYZxyz(2.6557, 1.4877, 6.2769)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F48 #25480F
analogous
#160F48 #320F48 #480F42
triadic
#320F48 #48320F #0F4832
tetradic
#320F48 #48160F #25480F #0F4248
square
#320F48 #48160F #25480F #0F4248
split-complementary
#320F48 #42480F #0F4816
monochromatic
#120519 #120519 #320F48 #551A7B #7824AD

Accessibility & contrast

On white

16.18
#320F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F48
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F48#FFFFFF#000000##FFFFFF
##320F481.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#2F1C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320f48;
/* rgb */ color: rgb(50, 15, 72);
/* oklch */ color: oklch(25.9% 0.102 309.0);
Tailwind
colors: {
  custom: {
    50: '#6d517b',
    500: '#320f48',
    950: '#000000',
  },
}
SCSS
$custom: #320f48;
$custom-light: #6d517b;
$custom-dark: #000000;
JSON
{
  "hex": "#320f48",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 276.842,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2587,
    "c": 0.10233,
    "h": 309
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#320F48
secondary
#508230
accent
#E83F81
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #320F48

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

Preview Lab → · Contrast checker → · Palette generator →

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