#321657#321657

#321657 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.111 H 298.7°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#321657
RGBrgb(50, 22, 87)
HSLhsl(266, 60%, 21%)
HSVhsv(266, 75%, 34%)
CMYKcmyk(42.5%, 74.7%, 0%, 65.9%)
CIE-LABlab(15.17, 29.13, -34.07)
CIE-LCHlch(15.17, 44.82, 310.53°)
OKLaboklab(28.16% 0.0533 -0.0972)
OKLCHoklch(28.16% 0.111 298.7)
XYZxyz(3.3222, 1.9400, 9.2144)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321657 #3B5716
analogous
#161B57 #321657 #531657
triadic
#321657 #573216 #165732
tetradic
#321657 #57161B #3B5716 #165753
square
#321657 #57161B #3B5716 #165753
split-complementary
#321657 #575316 #1B5716
monochromatic
#0E0618 #160A26 #321657 #4E2288 #6A2FB9

Accessibility & contrast

On white

15.13
#321657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321657
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321657#FFFFFF#000000##FFFFFF
##3216571.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#292634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321657;
/* rgb */ color: rgb(50, 22, 87);
/* oklch */ color: oklch(28.2% 0.111 298.7);
Tailwind
colors: {
  custom: {
    50: '#6e5687',
    500: '#321657',
    950: '#000000',
  },
}
SCSS
$custom: #321657;
$custom-light: #6e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#321657",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 265.846,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28155,
    "c": 0.11087,
    "h": 298.7
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#321657
secondary
#6A8E3A
accent
#E3459F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321657

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

Preview Lab → · Contrast checker → · Palette generator →

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