#321F45#321F45

#321F45 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.071 H 305.4°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#321F45
RGBrgb(50, 31, 69)
HSLhsl(270, 38%, 20%)
HSVhsv(270, 55%, 27%)
CMYKcmyk(27.5%, 55.1%, 0%, 72.9%)
CIE-LABlab(15.94, 18.19, -20.53)
CIE-LCHlch(15.94, 27.43, 311.54°)
OKLaboklab(28.29% 0.0409 -0.0575)
OKLCHoklch(28.29% 0.071 305.4)
XYZxyz(2.8793, 2.0878, 5.8804)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F45 #32451F
analogous
#1F1F45 #321F45 #451F45
triadic
#321F45 #45321F #1F4532
tetradic
#321F45 #451F1F #32451F #1F4545
square
#321F45 #451F1F #32451F #1F4545
split-complementary
#321F45 #45451F #1F451F
monochromatic
#0F0915 #130C1B #321F45 #51326F #6F4599

Accessibility & contrast

On white

14.81
#321F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F45
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F45#FFFFFF#000000##FFFFFF
##321F451.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142746
Deuteranopia (green-blind)
#192844
Tritanopia (blue-blind)
#2F262E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321f45;
/* rgb */ color: rgb(50, 31, 69);
/* oklch */ color: oklch(28.3% 0.071 305.4);
Tailwind
colors: {
  custom: {
    50: '#6b5b79',
    500: '#321f45',
    950: '#000000',
  },
}
SCSS
$custom: #321f45;
$custom-light: #6b5b79;
$custom-dark: #000000;
JSON
{
  "hex": "#321f45",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 38,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.0706,
    "h": 305.4
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#321F45
secondary
#607946
accent
#CE5A94
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #321F45

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

Preview Lab → · Contrast checker → · Palette generator →

#321F45 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva