#321758#321758

#321758 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.111 H 298.0°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#321758
RGBrgb(50, 23, 88)
HSLhsl(265, 59%, 22%)
HSVhsv(265, 74%, 35%)
CMYKcmyk(43.2%, 73.9%, 0%, 65.5%)
CIE-LABlab(15.46, 28.85, -34.26)
CIE-LCHlch(15.46, 44.79, 310.10°)
OKLaboklab(28.39% 0.052 -0.0978)
OKLCHoklch(28.39% 0.111 298)
XYZxyz(3.3828, 1.9954, 9.4376)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321758 #3D5817
analogous
#171D58 #321758 #531758
triadic
#321758 #583217 #175832
tetradic
#321758 #58171D #3D5817 #175853
square
#321758 #58171D #3D5817 #175853
split-complementary
#321758 #585317 #1D5817
monochromatic
#0E0618 #160A27 #321758 #4E2489 #6930B9

Accessibility & contrast

On white

15.01
#321758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321758
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321758#FFFFFF#000000##FFFFFF
##3217581.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.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: #321758;
/* rgb */ color: rgb(50, 23, 88);
/* oklch */ color: oklch(28.4% 0.111 298.0);
Tailwind
colors: {
  custom: {
    50: '#6e5688',
    500: '#321758',
    950: '#000000',
  },
}
SCSS
$custom: #321758;
$custom-light: #6e5688;
$custom-dark: #000000;
JSON
{
  "hex": "#321758",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 264.923,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28392,
    "c": 0.11073,
    "h": 298
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#321758
secondary
#6C8F3C
accent
#E246A1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321758

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

Preview Lab → · Contrast checker → · Palette generator →

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