#2821BD#2821BD

#2821BD is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.226 H 271.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2821BD
RGBrgb(40, 33, 189)
HSLhsl(243, 70%, 44%)
HSVhsv(243, 83%, 74%)
CMYKcmyk(78.8%, 82.5%, 0%, 25.9%)
CIE-LABlab(27.33, 53.91, -78.12)
CIE-LCHlch(27.33, 94.92, 304.61°)
OKLaboklab(39.73% 0.0053 -0.2261)
OKLCHoklch(39.73% 0.226 271.3)
XYZxyz(10.6011, 5.2118, 48.5815)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821BD #B6BD21
analogous
#2168BD #2821BD #7621BD
triadic
#2821BD #BD2821 #21BD28
tetradic
#2821BD #BD2168 #B6BD21 #21BD76
square
#2821BD #BD2168 #B6BD21 #21BD76
split-complementary
#2821BD #BD7621 #68BD21
monochromatic
#120F55 #1D1889 #2821BD #453EDD #7772E6

Accessibility & contrast

On white

10.28
#2821BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2821BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2821BD
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821BD#FFFFFF#000000##FFFFFF
##2821BD1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#0039BA
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2821bd;
/* rgb */ color: rgb(40, 33, 189);
/* oklch */ color: oklch(39.7% 0.226 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e61d2',
    500: '#2821bd',
    950: '#000000',
  },
}
SCSS
$custom: #2821bd;
$custom-light: #7e61d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2821bd",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 242.692,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.39727,
    "c": 0.22613,
    "h": 271.3
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#2821BD
secondary
#C9CD6D
accent
#ED3BE5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2821BD

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

Preview Lab → · Contrast checker → · Palette generator →

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