#2822AA#2822AA

#2822AA is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.203 H 272.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2822AA
RGBrgb(40, 34, 170)
HSLhsl(243, 67%, 40%)
HSVhsv(243, 80%, 67%)
CMYKcmyk(76.5%, 80%, 0%, 33.3%)
CIE-LABlab(25.25, 47.54, -70.22)
CIE-LCHlch(25.25, 84.80, 304.10°)
OKLaboklab(37.63% 0.0094 -0.2032)
OKLCHoklch(37.63% 0.203 272.7)
XYZxyz(8.7004, 4.4965, 38.4318)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822AA #A4AA22
analogous
#2260AA #2822AA #6C22AA
triadic
#2822AA #AA2822 #22AA28
tetradic
#2822AA #AA2260 #A4AA22 #22AA6C
square
#2822AA #AA2260 #A4AA22 #22AA6C
split-complementary
#2822AA #AA6C22 #60AA22
monochromatic
#100E44 #1C1877 #2822AA #3A33D6 #6B66E0

Accessibility & contrast

On white

11.06
#2822AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2822AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2822AA#FFFFFF#000000##FFFFFF
##2822AA1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0035A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2822aa;
/* rgb */ color: rgb(40, 34, 170);
/* oklch */ color: oklch(37.6% 0.203 272.7);
Tailwind
colors: {
  custom: {
    50: '#7960c5',
    500: '#2822aa',
    950: '#000000',
  },
}
SCSS
$custom: #2822aa;
$custom-light: #7960c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2822aa",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 242.647,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.37634,
    "c": 0.20343,
    "h": 272.7
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#2822AA
secondary
#C1C662
accent
#EA3EE2
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2822AA

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

Preview Lab → · Contrast checker → · Palette generator →

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