#321452#321452

#321452 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.107 H 301.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#321452
RGBrgb(50, 20, 82)
HSLhsl(269, 61%, 20%)
HSVhsv(269, 76%, 32%)
CMYKcmyk(39%, 75.6%, 0%, 67.8%)
CIE-LABlab(14.33, 28.81, -32.04)
CIE-LCHlch(14.33, 43.09, 311.96°)
OKLaboklab(27.42% 0.0566 -0.0912)
OKLCHoklch(27.42% 0.107 301.8)
XYZxyz(3.0882, 1.7876, 8.1634)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321452 #345214
analogous
#141552 #321452 #511452
triadic
#321452 #523214 #145232
tetradic
#321452 #521415 #345214 #145251
square
#321452 #521415 #345214 #145251
split-complementary
#321452 #525114 #155214
monochromatic
#0F0619 #140821 #321452 #502083 #6E2CB4

Accessibility & contrast

On white

15.47
#321452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321452
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321452#FFFFFF#000000##FFFFFF
##3214521.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2B2331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321452;
/* rgb */ color: rgb(50, 20, 82);
/* oklch */ color: oklch(27.4% 0.107 301.8);
Tailwind
colors: {
  custom: {
    50: '#6d5483',
    500: '#321452',
    950: '#000000',
  },
}
SCSS
$custom: #321452;
$custom-light: #6d5483;
$custom-dark: #000000;
JSON
{
  "hex": "#321452",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 269.032,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.2742,
    "c": 0.10736,
    "h": 301.8
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#321452
secondary
#628A38
accent
#E44496
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321452

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

Preview Lab → · Contrast checker → · Palette generator →

#321452 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva