#2822C1#2822C1

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

Color values

HEX#2822C1
RGBrgb(40, 34, 193)
HSLhsl(242, 70%, 45%)
HSVhsv(242, 82%, 76%)
CMYKcmyk(79.3%, 82.4%, 0%, 24.3%)
CIE-LABlab(27.96, 54.67, -79.43)
CIE-LCHlch(27.96, 96.43, 304.54°)
OKLaboklab(40.3% 0.0041 -0.2299)
OKLCHoklch(40.3% 0.23 271)
XYZxyz(11.0695, 5.4442, 50.9092)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822C1 #BBC122
analogous
#226CC1 #2822C1 #7822C1
triadic
#2822C1 #C12822 #22C128
tetradic
#2822C1 #C1226C #BBC122 #22C178
square
#2822C1 #C1226C #BBC122 #22C178
split-complementary
#2822C1 #C17822 #6CC122
monochromatic
#121059 #1D198D #2822C1 #4842DE #7B76E7

Accessibility & contrast

On white

10.05
#2822C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2822C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822C1
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822C1#FFFFFF#000000##FFFFFF
##2822C11.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC5
Deuteranopia (green-blind)
#003ABE
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2822c1;
/* rgb */ color: rgb(40, 34, 193);
/* oklch */ color: oklch(40.3% 0.230 271.0);
Tailwind
colors: {
  custom: {
    50: '#7f62d5',
    500: '#2822c1',
    950: '#000000',
  },
}
SCSS
$custom: #2822c1;
$custom-light: #7f62d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2822c1",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 242.264,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.22991,
    "h": 271
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#2822C1
secondary
#CBCE71
accent
#ED3BE6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2822C1

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

Preview Lab → · Contrast checker → · Palette generator →

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