#321FB3#321FB3

#321FB3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.0% C 0.214 H 275.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#321FB3
RGBrgb(50, 31, 179)
HSLhsl(248, 70%, 41%)
HSVhsv(248, 83%, 70%)
CMYKcmyk(72.1%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.48, 52.45, -73.56)
CIE-LCHlch(26.48, 90.35, 305.49°)
OKLaboklab(38.97% 0.0212 -0.2126)
OKLCHoklch(38.97% 0.214 275.7)
XYZxyz(9.9394, 4.9118, 43.0633)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321FB3 #A0B31F
analogous
#1F56B3 #321FB3 #7C1FB3
triadic
#321FB3 #B3321F #1FB332
tetradic
#321FB3 #B31F56 #A0B31F #1FB37C
square
#321FB3 #B31F56 #A0B31F #1FB37C
split-complementary
#321FB3 #B37C1F #56B31F
monochromatic
#150D4B #23167F #321FB3 #4933DC #7868E5

Accessibility & contrast

On white

10.59
#321FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#321FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321FB3
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321FB3#FFFFFF#000000##FFFFFF
##321FB31.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #321fb3;
/* rgb */ color: rgb(50, 31, 179);
/* oklch */ color: oklch(39.0% 0.214 275.7);
Tailwind
colors: {
  custom: {
    50: '#7f60cb',
    500: '#321fb3',
    950: '#000000',
  },
}
SCSS
$custom: #321fb3;
$custom-light: #7f60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#321fb3",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 247.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38969,
    "c": 0.21368,
    "h": 275.7
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#321FB3
secondary
#BDCA64
accent
#ED3BD6
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #321FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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