#321FA8#321FA8

#321FA8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.201 H 277.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#321FA8
RGBrgb(50, 31, 168)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 82%, 66%)
CMYKcmyk(70.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(25.21, 49.16, -69.06)
CIE-LCHlch(25.21, 84.77, 305.45°)
OKLaboklab(37.72% 0.0244 -0.1995)
OKLCHoklch(37.72% 0.201 277)
XYZxyz(8.8710, 4.4844, 37.4363)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FA8 #95A81F
analogous
#1F51A8 #321FA8 #771FA8
triadic
#321FA8 #A8321F #1FA832
tetradic
#321FA8 #A81F51 #95A81F #1FA877
square
#321FA8 #A81F51 #95A81F #1FA877
split-complementary
#321FA8 #A8771F #51A81F
monochromatic
#130C41 #231574 #321FA8 #442CD8 #7260E2

Accessibility & contrast

On white

11.07
#321FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#321FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FA8
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FA8#FFFFFF#000000##FFFFFF
##321FA81.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #321fa8;
/* rgb */ color: rgb(50, 31, 168);
/* oklch */ color: oklch(37.7% 0.201 277.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fc3',
    500: '#321fa8',
    950: '#000000',
  },
}
SCSS
$custom: #321fa8;
$custom-light: #7d5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#321fa8",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 248.321,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37723,
    "c": 0.20103,
    "h": 277
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#321FA8
secondary
#B8C65D
accent
#EC3CD3
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #321FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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