#321DEC#321DEC

#321DEC is a mid, highly saturated blue. Relative luminance 0.076; OKLCH L 45.5% C 0.277 H 271.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#321DEC
RGBrgb(50, 29, 236)
HSLhsl(246, 84%, 52%)
HSVhsv(246, 88%, 93%)
CMYKcmyk(78.8%, 87.7%, 0%, 7.5%)
CIE-LABlab(33.16, 69.21, -95.65)
CIE-LCHlch(33.16, 118.07, 305.89°)
OKLaboklab(45.5% 0.0058 -0.2765)
OKLCHoklch(45.5% 0.277 271.2)
XYZxyz(16.8900, 7.6110, 79.9195)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321DEC #D7EC1D
analogous
#1D70EC #321DEC #9A1DEC
triadic
#321DEC #EC321D #1DEC32
tetradic
#321DEC #EC1D70 #D7EC1D #1DEC9A
square
#321DEC #EC1D70 #D7EC1D #1DEC9A
split-complementary
#321DEC #EC9A1D #70EC1D
monochromatic
#170B84 #2110BC #321DEC #6555F1 #988EF5

Accessibility & contrast

On white

8.32
#321DEC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#321DEC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321DEC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321DEC#FFFFFF#000000##FFFFFF
##321DEC1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058F1
Deuteranopia (green-blind)
#0044E9
Tritanopia (blue-blind)
#00668C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #321dec;
/* rgb */ color: rgb(50, 29, 236);
/* oklch */ color: oklch(45.5% 0.277 271.2);
Tailwind
colors: {
  custom: {
    50: '#8c64f4',
    500: '#321dec',
    950: '#000000',
  },
}
SCSS
$custom: #321dec;
$custom-light: #8c64f4;
$custom-dark: #000000;
JSON
{
  "hex": "#321dec",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 236
  },
  "hsl": {
    "h": 246.087,
    "s": 84.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.45504,
    "c": 0.27659,
    "h": 271.2
  },
  "luminance": 0.07613
}

Semantic roles & 50–950 ramp

primary
#321DEC
secondary
#D7E085
accent
#FB2DE6
background
#F9F6FF
surface
#F2EBFF
border
#CCC6D7
text
#0F0617
muted
#7E7A85

Preview Lab

Preview with #321DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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