#2822A5#2822A5

#2822A5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.197 H 273.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2822A5
RGBrgb(40, 34, 165)
HSLhsl(243, 66%, 39%)
HSVhsv(243, 79%, 65%)
CMYKcmyk(75.8%, 79.4%, 0%, 35.3%)
CIE-LABlab(24.67, 45.94, -68.15)
CIE-LCHlch(24.67, 82.19, 303.98°)
OKLaboklab(37.06% 0.0106 -0.1972)
OKLCHoklch(37.06% 0.197 273.1)
XYZxyz(8.2364, 4.3109, 35.9880)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822A5 #9FA522
analogous
#225EA5 #2822A5 #6A22A5
triadic
#2822A5 #A52822 #22A528
tetradic
#2822A5 #A5225E #9FA522 #22A56A
square
#2822A5 #A5225E #9FA522 #22A56A
split-complementary
#2822A5 #A56A22 #5EA522
monochromatic
#0F0D40 #1C1872 #2822A5 #3730D4 #6863DF

Accessibility & contrast

On white

11.28
#2822A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2822A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822A5
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822A5#FFFFFF#000000##FFFFFF
##2822A51.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2822a5;
/* rgb */ color: rgb(40, 34, 165);
/* oklch */ color: oklch(37.1% 0.197 273.1);
Tailwind
colors: {
  custom: {
    50: '#7860c1',
    500: '#2822a5',
    950: '#000000',
  },
}
SCSS
$custom: #2822a5;
$custom-light: #7860c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2822a5",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 242.748,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37064,
    "c": 0.19748,
    "h": 273.1
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#2822A5
secondary
#BFC45F
accent
#E93FE1
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2822A5

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

Preview Lab → · Contrast checker → · Palette generator →

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