#321E9F#321E9F

#321E9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.191 H 278.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#321E9F
RGBrgb(50, 30, 159)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(68.6%, 81.1%, 0%, 37.6%)
CIE-LABlab(24.03, 46.91, -65.55)
CIE-LCHlch(24.03, 80.60, 305.59°)
OKLaboklab(36.6% 0.0274 -0.1893)
OKLCHoklch(36.6% 0.191 278.2)
XYZxyz(8.0357, 4.1092, 33.1638)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E9F #8B9F1E
analogous
#1E4B9F #321E9F #721E9F
triadic
#321E9F #9F321E #1E9F32
tetradic
#321E9F #9F1E4B #8B9F1E #1E9F72
square
#321E9F #9F1E4B #8B9F1E #1E9F72
split-complementary
#321E9F #9F721E #4B9F1E
monochromatic
#120B38 #22146C #321E9F #4228D2 #6D58DF

Accessibility & contrast

On white

11.53
#321E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#321E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E9F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E9F#FFFFFF#000000##FFFFFF
##321E9F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321e9f;
/* rgb */ color: rgb(50, 30, 159);
/* oklch */ color: oklch(36.6% 0.191 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ebd',
    500: '#321e9f',
    950: '#000000',
  },
}
SCSS
$custom: #321e9f;
$custom-light: #7b5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#321e9f",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 249.302,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.19133,
    "h": 278.2
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#321E9F
secondary
#B2C356
accent
#EB3DD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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