#321EAE#321EAE

#321EAE is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.209 H 276.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#321EAE
RGBrgb(50, 30, 174)
HSLhsl(248, 71%, 40%)
HSVhsv(248, 83%, 68%)
CMYKcmyk(71.3%, 82.8%, 0%, 31.8%)
CIE-LABlab(25.75, 51.41, -71.78)
CIE-LCHlch(25.75, 88.30, 305.61°)
OKLaboklab(38.3% 0.023 -0.2074)
OKLCHoklch(38.3% 0.209 276.3)
XYZxyz(9.4172, 4.6618, 40.4397)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321EAE #9AAE1E
analogous
#1E52AE #321EAE #7A1EAE
triadic
#321EAE #AE321E #1EAE32
tetradic
#321EAE #AE1E52 #9AAE1E #1EAE7A
square
#321EAE #AE1E52 #9AAE1E #1EAE7A
split-complementary
#321EAE #AE7A1E #52AE1E
monochromatic
#140C46 #23157A #321EAE #462EDB #7462E4

Accessibility & contrast

On white

10.87
#321EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#321EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321EAE
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321EAE#FFFFFF#000000##FFFFFF
##321EAE1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0037AC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #321eae;
/* rgb */ color: rgb(50, 30, 174);
/* oklch */ color: oklch(38.3% 0.209 276.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fc8',
    500: '#321eae',
    950: '#000000',
  },
}
SCSS
$custom: #321eae;
$custom-light: #7e5fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#321eae",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 248.333,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.38295,
    "c": 0.20872,
    "h": 276.3
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#321EAE
secondary
#BAC95F
accent
#ED3AD5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #321EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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