#2821C2#2821C2

#2821C2 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.3% C 0.232 H 271.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2821C2
RGBrgb(40, 33, 194)
HSLhsl(243, 71%, 45%)
HSVhsv(243, 83%, 76%)
CMYKcmyk(79.4%, 83%, 0%, 23.9%)
CIE-LABlab(27.93, 55.42, -80.07)
CIE-LCHlch(27.93, 97.38, 304.69°)
OKLaboklab(40.32% 0.0041 -0.2317)
OKLCHoklch(40.32% 0.232 271)
XYZxyz(11.1532, 5.4326, 51.4893)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821C2 #BBC221
analogous
#216AC2 #2821C2 #7921C2
triadic
#2821C2 #C22821 #21C228
tetradic
#2821C2 #C2216A #BBC221 #21C279
square
#2821C2 #C2216A #BBC221 #21C279
split-complementary
#2821C2 #C27921 #6AC221
monochromatic
#120F59 #1D188E #2821C2 #4841DF #7B76E8

Accessibility & contrast

On white

10.06
#2821C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2821C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2821C2
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821C2#FFFFFF#000000##FFFFFF
##2821C21.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003ABF
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2821c2;
/* rgb */ color: rgb(40, 33, 194);
/* oklch */ color: oklch(40.3% 0.232 271.0);
Tailwind
colors: {
  custom: {
    50: '#7f62d6',
    500: '#2821c2',
    950: '#000000',
  },
}
SCSS
$custom: #2821c2;
$custom-light: #7f62d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2821c2",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 242.609,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40316,
    "c": 0.23175,
    "h": 271
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#2821C2
secondary
#CBCF70
accent
#EE3AE6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2821C2

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

Preview Lab → · Contrast checker → · Palette generator →

#2821C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva