#321BA6#321BA6

#321BA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.202 H 277.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#321BA6
RGBrgb(50, 27, 166)
HSLhsl(250, 72%, 38%)
HSVhsv(250, 84%, 65%)
CMYKcmyk(69.9%, 83.7%, 0%, 34.9%)
CIE-LABlab(24.37, 50.37, -69.24)
CIE-LCHlch(24.37, 85.62, 306.03°)
OKLaboklab(37.07% 0.0266 -0.2)
OKLCHoklch(37.07% 0.202 277.6)
XYZxyz(8.5880, 4.2144, 36.4299)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321BA6 #8FA61B
analogous
#1B49A6 #321BA6 #771BA6
triadic
#321BA6 #A6321B #1BA632
tetradic
#321BA6 #A61B49 #8FA61B #1BA677
square
#321BA6 #A61B49 #8FA61B #1BA677
split-complementary
#321BA6 #A6771B #49A61B
monochromatic
#120A3D #221271 #321BA6 #4224DB #6F58E4

Accessibility & contrast

On white

11.39
#321BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#321BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321BA6
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321BA6#FFFFFF#000000##FFFFFF
##321BA61.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321ba6;
/* rgb */ color: rgb(50, 27, 166);
/* oklch */ color: oklch(37.1% 0.202 277.6);
Tailwind
colors: {
  custom: {
    50: '#7c5dc2',
    500: '#321ba6',
    950: '#000000',
  },
}
SCSS
$custom: #321ba6;
$custom-light: #7c5dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#321ba6",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 249.928,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.2018,
    "h": 277.6
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#321BA6
secondary
#B4C756
accent
#EF39D1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #321BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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