#321FAE#321FAE

#321FAE is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.4% C 0.208 H 276.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#321FAE
RGBrgb(50, 31, 174)
HSLhsl(248, 70%, 40%)
HSVhsv(248, 82%, 68%)
CMYKcmyk(71.3%, 82.2%, 0%, 31.8%)
CIE-LABlab(25.90, 50.97, -71.53)
CIE-LCHlch(25.90, 87.83, 305.47°)
OKLaboklab(38.4% 0.0226 -0.2067)
OKLCHoklch(38.4% 0.208 276.2)
XYZxyz(9.4429, 4.7132, 40.4483)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FAE #9BAE1F
analogous
#1F53AE #321FAE #791FAE
triadic
#321FAE #AE321F #1FAE32
tetradic
#321FAE #AE1F53 #9BAE1F #1FAE79
square
#321FAE #AE1F53 #9BAE1F #1FAE79
split-complementary
#321FAE #AE791F #53AE1F
monochromatic
#140C46 #23167A #321FAE #4730DA #7564E3

Accessibility & contrast

On white

10.81
#321FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#321FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FAE
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FAE#FFFFFF#000000##FFFFFF
##321FAE1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.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: #321fae;
/* rgb */ color: rgb(50, 31, 174);
/* oklch */ color: oklch(38.4% 0.208 276.2);
Tailwind
colors: {
  custom: {
    50: '#7e60c8',
    500: '#321fae',
    950: '#000000',
  },
}
SCSS
$custom: #321fae;
$custom-light: #7e60c8;
$custom-dark: #000000;
JSON
{
  "hex": "#321fae",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 174
  },
  "hsl": {
    "h": 247.972,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.384,
    "c": 0.20797,
    "h": 276.2
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#321FAE
secondary
#BBC860
accent
#ED3BD5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #321FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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