#321F64#321F64

#321F64 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.115 H 290.7°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#321F64
RGBrgb(50, 31, 100)
HSLhsl(257, 53%, 26%)
HSVhsv(257, 69%, 39%)
CMYKcmyk(50%, 69%, 0%, 60.8%)
CIE-LABlab(18.27, 27.72, -37.69)
CIE-LCHlch(18.27, 46.79, 306.33°)
OKLaboklab(30.73% 0.0407 -0.1079)
OKLCHoklch(30.73% 0.115 290.7)
XYZxyz(4.1050, 2.5780, 12.3354)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F64 #51641F
analogous
#1F2E64 #321F64 #541F64
triadic
#321F64 #64321F #1F6432
tetradic
#321F64 #641F2E #51641F #1F6454
square
#321F64 #641F2E #51641F #1F6454
split-complementary
#321F64 #64541F #2E641F
monochromatic
#0C0717 #1B1135 #321F64 #492D93 #613CC1

Accessibility & contrast

On white

13.86
#321F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F64
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F64#FFFFFF#000000##FFFFFF
##321F641.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#22303E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321f64;
/* rgb */ color: rgb(50, 31, 100);
/* oklch */ color: oklch(30.7% 0.115 290.7);
Tailwind
colors: {
  custom: {
    50: '#6f5c91',
    500: '#321f64',
    950: '#000000',
  },
}
SCSS
$custom: #321f64;
$custom-light: #6f5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#321f64",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 256.522,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30734,
    "c": 0.11532,
    "h": 290.7
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#321F64
secondary
#829846
accent
#DC4CB4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #321F64

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

Preview Lab → · Contrast checker → · Palette generator →

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