#2821AC#2821AC

#2821AC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.207 H 272.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2821AC
RGBrgb(40, 33, 172)
HSLhsl(243, 68%, 40%)
HSVhsv(243, 81%, 67%)
CMYKcmyk(76.7%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.31, 48.67, -71.33)
CIE-LCHlch(25.31, 86.35, 304.31°)
OKLaboklab(37.74% 0.0093 -0.2064)
OKLCHoklch(37.74% 0.207 272.6)
XYZxyz(8.8628, 4.5164, 39.4264)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821AC #A5AC21
analogous
#215FAC #2821AC #6E21AC
triadic
#2821AC #AC2821 #21AC28
tetradic
#2821AC #AC215F #A5AC21 #21AC6E
square
#2821AC #AC215F #A5AC21 #21AC6E
split-complementary
#2821AC #AC6E21 #5FAC21
monochromatic
#100D45 #1C1779 #2821AC #3B32D8 #6C66E2

Accessibility & contrast

On white

11.03
#2821AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2821AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2821AC
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821AC#FFFFFF#000000##FFFFFF
##2821AC1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2821ac;
/* rgb */ color: rgb(40, 33, 172);
/* oklch */ color: oklch(37.7% 0.207 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a60c6',
    500: '#2821ac',
    950: '#000000',
  },
}
SCSS
$custom: #2821ac;
$custom-light: #7a60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2821ac",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 243.022,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37744,
    "c": 0.2066,
    "h": 272.6
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#2821AC
secondary
#C2C762
accent
#EB3DE2
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2821AC

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

Preview Lab → · Contrast checker → · Palette generator →

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