#321A4E#321A4E

#321A4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.093 H 302.0°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#321A4E
RGBrgb(50, 26, 78)
HSLhsl(268, 50%, 20%)
HSVhsv(268, 67%, 31%)
CMYKcmyk(35.9%, 66.7%, 0%, 69.4%)
CIE-LABlab(15.31, 24.09, -27.72)
CIE-LCHlch(15.31, 36.72, 310.99°)
OKLaboklab(28.03% 0.0491 -0.0786)
OKLCHoklch(28.03% 0.093 302)
XYZxyz(3.0596, 1.9669, 7.4247)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A4E #364E1A
analogous
#1A1C4E #321A4E #4C1A4E
triadic
#321A4E #4E321A #1A4E32
tetradic
#321A4E #4E1A1C #364E1A #1A4E4C
square
#321A4E #4E1A1C #364E1A #1A4E4C
split-complementary
#321A4E #4E4C1A #1C4E1A
monochromatic
#0F0817 #150B20 #321A4E #4F297C #6D39AA

Accessibility & contrast

On white

15.07
#321A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A4E
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A4E#FFFFFF#000000##FFFFFF
##321A4E1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#0B264D
Tritanopia (blue-blind)
#2C2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321a4e;
/* rgb */ color: rgb(50, 26, 78);
/* oklch */ color: oklch(28.0% 0.093 302.0);
Tailwind
colors: {
  custom: {
    50: '#6c5880',
    500: '#321a4e',
    950: '#000000',
  },
}
SCSS
$custom: #321a4e;
$custom-light: #6c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#321a4e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 267.692,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28025,
    "c": 0.09266,
    "h": 302
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#321A4E
secondary
#658440
accent
#DA4E99
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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