#321A62#321A62

#321A62 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.120 H 293.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#321A62
RGBrgb(50, 26, 98)
HSLhsl(260, 58%, 24%)
HSVhsv(260, 73%, 38%)
CMYKcmyk(49%, 73.5%, 0%, 61.6%)
CIE-LABlab(16.98, 30.13, -38.47)
CIE-LCHlch(16.98, 48.86, 308.07°)
OKLaboklab(29.76% 0.0467 -0.1101)
OKLCHoklch(29.76% 0.12 293)
XYZxyz(3.8888, 2.2986, 11.7917)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A62 #4A621A
analogous
#1A2662 #321A62 #561A62
triadic
#321A62 #62321A #1A6232
tetradic
#321A62 #621A26 #4A621A #1A6256
square
#321A62 #621A26 #4A621A #1A6256
split-complementary
#321A62 #62561A #26621A
monochromatic
#0C0618 #190D32 #321A62 #4B2792 #6334C3

Accessibility & contrast

On white

14.39
#321A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A62
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A62#FFFFFF#000000##FFFFFF
##321A621.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#242C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321a62;
/* rgb */ color: rgb(50, 26, 98);
/* oklch */ color: oklch(29.8% 0.120 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f588f',
    500: '#321a62',
    950: '#000000',
  },
}
SCSS
$custom: #321a62;
$custom-light: #6f588f;
$custom-dark: #000000;
JSON
{
  "hex": "#321a62",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 260,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29755,
    "c": 0.11964,
    "h": 293
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#321A62
secondary
#7B9840
accent
#E147AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321A62

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

Preview Lab → · Contrast checker → · Palette generator →

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