#321E50#321E50

#321E50 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.089 H 299.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#321E50
RGBrgb(50, 30, 80)
HSLhsl(264, 45%, 22%)
HSVhsv(264, 63%, 31%)
CMYKcmyk(37.5%, 62.5%, 0%, 68.6%)
CIE-LABlab(16.43, 22.11, -27.28)
CIE-LCHlch(16.43, 35.12, 309.02°)
OKLaboklab(28.89% 0.0433 -0.0773)
OKLCHoklch(28.89% 0.089 299.2)
XYZxyz(3.2273, 2.1858, 7.8397)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E50 #3C501E
analogous
#1E2350 #321E50 #4B1E50
triadic
#321E50 #50321E #1E5032
tetradic
#321E50 #501E23 #3C501E #1E504B
square
#321E50 #501E23 #3C501E #1E504B
split-complementary
#321E50 #504B1E #23501E
monochromatic
#0E0816 #160D23 #321E50 #4E2F7D #6A3FA9

Accessibility & contrast

On white

14.61
#321E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E50
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E50#FFFFFF#000000##FFFFFF
##321E501.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072952
Deuteranopia (green-blind)
#0F284F
Tritanopia (blue-blind)
#2C2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321e50;
/* rgb */ color: rgb(50, 30, 80);
/* oklch */ color: oklch(28.9% 0.089 299.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a81',
    500: '#321e50',
    950: '#000000',
  },
}
SCSS
$custom: #321e50;
$custom-light: #6c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#321e50",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 264,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28893,
    "c": 0.08858,
    "h": 299.2
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#321E50
secondary
#6B8545
accent
#D553A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321E50

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

Preview Lab → · Contrast checker → · Palette generator →

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