#321BA8#321BA8

#321BA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.204 H 277.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#321BA8
RGBrgb(50, 27, 168)
HSLhsl(250, 72%, 38%)
HSVhsv(250, 84%, 66%)
CMYKcmyk(70.2%, 83.9%, 0%, 34.1%)
CIE-LABlab(24.60, 50.95, -70.07)
CIE-LCHlch(24.60, 86.63, 306.02°)
OKLaboklab(37.3% 0.0259 -0.2024)
OKLCHoklch(37.3% 0.204 277.3)
XYZxyz(8.7729, 4.2883, 37.4036)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321BA8 #91A81B
analogous
#1B4AA8 #321BA8 #781BA8
triadic
#321BA8 #A8321B #1BA832
tetradic
#321BA8 #A81B4A #91A81B #1BA878
square
#321BA8 #A81B4A #91A81B #1BA878
split-complementary
#321BA8 #A8781B #4AA81B
monochromatic
#130A3F #221373 #321BA8 #4224DC #7059E4

Accessibility & contrast

On white

11.30
#321BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#321BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321BA8
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321BA8#FFFFFF#000000##FFFFFF
##321BA81.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321ba8;
/* rgb */ color: rgb(50, 27, 168);
/* oklch */ color: oklch(37.3% 0.204 277.3);
Tailwind
colors: {
  custom: {
    50: '#7d5dc3',
    500: '#321ba8',
    950: '#000000',
  },
}
SCSS
$custom: #321ba8;
$custom-light: #7d5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#321ba8",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 249.787,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37302,
    "c": 0.20408,
    "h": 277.3
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#321BA8
secondary
#B5C857
accent
#EF39D1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #321BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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