#321858#321858

#321858 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.109 H 297.7°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#321858
RGBrgb(50, 24, 88)
HSLhsl(264, 57%, 22%)
HSVhsv(264, 73%, 35%)
CMYKcmyk(43.2%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.67, 28.27, -33.92)
CIE-LCHlch(15.67, 44.15, 309.81°)
OKLaboklab(28.54% 0.0508 -0.0968)
OKLCHoklch(28.54% 0.109 297.7)
XYZxyz(3.4030, 2.0359, 9.4443)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321858 #3E5818
analogous
#181E58 #321858 #521858
triadic
#321858 #583218 #185832
tetradic
#321858 #58181E #3E5818 #185852
square
#321858 #58181E #3E5818 #185852
split-complementary
#321858 #585218 #1E5818
monochromatic
#0E0718 #170B28 #321858 #4D2588 #6932B8

Accessibility & contrast

On white

14.92
#321858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321858
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321858#FFFFFF#000000##FFFFFF
##3218581.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#292735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321858;
/* rgb */ color: rgb(50, 24, 88);
/* oklch */ color: oklch(28.5% 0.109 297.7);
Tailwind
colors: {
  custom: {
    50: '#6e5788',
    500: '#321858',
    950: '#000000',
  },
}
SCSS
$custom: #321858;
$custom-light: #6e5788;
$custom-dark: #000000;
JSON
{
  "hex": "#321858",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 264.375,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28544,
    "c": 0.10928,
    "h": 297.7
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#321858
secondary
#6E8F3D
accent
#E047A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321858

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

Preview Lab → · Contrast checker → · Palette generator →

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