#321EB3#321EB3

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

Color values

HEX#321EB3
RGBrgb(50, 30, 179)
HSLhsl(248, 71%, 41%)
HSVhsv(248, 83%, 70%)
CMYKcmyk(72.1%, 83.2%, 0%, 29.8%)
CIE-LABlab(26.33, 52.89, -73.81)
CIE-LCHlch(26.33, 90.80, 305.63°)
OKLaboklab(38.87% 0.0215 -0.2133)
OKLCHoklch(38.87% 0.214 275.8)
XYZxyz(9.9137, 4.8604, 43.0548)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321EB3 #9FB31E
analogous
#1E54B3 #321EB3 #7C1EB3
triadic
#321EB3 #B3321E #1EB332
tetradic
#321EB3 #B31E54 #9FB31E #1EB37C
square
#321EB3 #B31E54 #9FB31E #1EB37C
split-complementary
#321EB3 #B37C1E #54B31E
monochromatic
#150C4A #23157F #321EB3 #4932DD #7766E5

Accessibility & contrast

On white

10.65
#321EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#321EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321EB3
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321EB3#FFFFFF#000000##FFFFFF
##321EB31.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321eb3;
/* rgb */ color: rgb(50, 30, 179);
/* oklch */ color: oklch(38.9% 0.214 275.8);
Tailwind
colors: {
  custom: {
    50: '#7f60cb',
    500: '#321eb3',
    950: '#000000',
  },
}
SCSS
$custom: #321eb3;
$custom-light: #7f60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#321eb3",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 248.054,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.21441,
    "h": 275.8
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#321EB3
secondary
#BDCB62
accent
#EE3AD6
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #321EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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