#2822D5#2822D5

#2822D5 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.7% C 0.252 H 269.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2822D5
RGBrgb(40, 34, 213)
HSLhsl(242, 72%, 48%)
HSVhsv(242, 84%, 84%)
CMYKcmyk(81.2%, 84%, 0%, 16.5%)
CIE-LABlab(30.39, 60.60, -87.07)
CIE-LCHlch(30.39, 106.09, 304.84°)
OKLaboklab(42.67% -0.0004 -0.252)
OKLCHoklch(42.67% 0.252 269.9)
XYZxyz(13.4533, 6.3977, 63.4637)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822D5 #CFD522
analogous
#2275D5 #2822D5 #8122D5
triadic
#2822D5 #D52822 #22D528
tetradic
#2822D5 #D52275 #CFD522 #22D581
square
#2822D5 #D52275 #CFD522 #22D581
split-complementary
#2822D5 #D58122 #75D522
monochromatic
#14116B #1E1AA0 #2822D5 #5651E3 #8986EC

Accessibility & contrast

On white

9.21
#2822D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2822D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822D5
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822D5#FFFFFF#000000##FFFFFF
##2822D51.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050DA
Deuteranopia (green-blind)
#003ED2
Tritanopia (blue-blind)
#005E7F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2822d5;
/* rgb */ color: rgb(40, 34, 213);
/* oklch */ color: oklch(42.7% 0.252 269.9);
Tailwind
colors: {
  custom: {
    50: '#8464e4',
    500: '#2822d5',
    950: '#000000',
  },
}
SCSS
$custom: #2822d5;
$custom-light: #8464e4;
$custom-dark: #000000;
JSON
{
  "hex": "#2822d5",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 213
  },
  "hsl": {
    "h": 242.011,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.42671,
    "c": 0.25198,
    "h": 269.9
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#2822D5
secondary
#D2D57E
accent
#EF39E9
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #2822D5

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

Preview Lab → · Contrast checker → · Palette generator →

#2822D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva