#2822A8#2822A8

#2822A8 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.201 H 272.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2822A8
RGBrgb(40, 34, 168)
HSLhsl(243, 66%, 40%)
HSVhsv(243, 80%, 66%)
CMYKcmyk(76.2%, 79.8%, 0%, 34.1%)
CIE-LABlab(25.02, 46.90, -69.40)
CIE-LCHlch(25.02, 83.76, 304.05°)
OKLaboklab(37.41% 0.0099 -0.2008)
OKLCHoklch(37.41% 0.201 272.8)
XYZxyz(8.5126, 4.4214, 37.4430)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822A8 #A2A822
analogous
#225FA8 #2822A8 #6B22A8
triadic
#2822A8 #A82822 #22A828
tetradic
#2822A8 #A8225F #A2A822 #22A86B
square
#2822A8 #A8225F #A2A822 #22A86B
split-complementary
#2822A8 #A86B22 #5FA822
monochromatic
#100D42 #1C1875 #2822A8 #3932D5 #6A65E0

Accessibility & contrast

On white

11.14
#2822A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2822A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2822A8
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2822A8#FFFFFF#000000##FFFFFF
##2822A81.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2822a8;
/* rgb */ color: rgb(40, 34, 168);
/* oklch */ color: oklch(37.4% 0.201 272.8);
Tailwind
colors: {
  custom: {
    50: '#7960c3',
    500: '#2822a8',
    950: '#000000',
  },
}
SCSS
$custom: #2822a8;
$custom-light: #7960c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2822a8",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 242.687,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37405,
    "c": 0.20106,
    "h": 272.8
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#2822A8
secondary
#C1C561
accent
#E93FE2
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2822A8

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

Preview Lab → · Contrast checker → · Palette generator →

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