#2822BD#2822BD

#2822BD is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.8% C 0.225 H 271.3°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2822BD
RGBrgb(40, 34, 189)
HSLhsl(242, 70%, 44%)
HSVhsv(242, 82%, 74%)
CMYKcmyk(78.8%, 82%, 0%, 25.9%)
CIE-LABlab(27.49, 53.46, -77.86)
CIE-LCHlch(27.49, 94.45, 304.47°)
OKLaboklab(39.83% 0.005 -0.2253)
OKLCHoklch(39.83% 0.225 271.3)
XYZxyz(10.6293, 5.2681, 48.5909)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822BD #B7BD22
analogous
#2269BD #2822BD #7522BD
triadic
#2822BD #BD2822 #22BD28
tetradic
#2822BD #BD2269 #B7BD22 #22BD75
square
#2822BD #BD2269 #B7BD22 #22BD75
split-complementary
#2822BD #BD7522 #69BD22
monochromatic
#120F55 #1D1989 #2822BD #4640DD #7873E6

Accessibility & contrast

On white

10.22
#2822BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2822BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822BD
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822BD#FFFFFF#000000##FFFFFF
##2822BD1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.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: #2822bd;
/* rgb */ color: rgb(40, 34, 189);
/* oklch */ color: oklch(39.8% 0.225 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e62d2',
    500: '#2822bd',
    950: '#000000',
  },
}
SCSS
$custom: #2822bd;
$custom-light: #7e62d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2822bd",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 242.323,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.2254,
    "h": 271.3
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#2822BD
secondary
#C9CD6E
accent
#EC3BE5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2822BD

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

Preview Lab → · Contrast checker → · Palette generator →

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