#2822A7#2822A7

#2822A7 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.200 H 272.9°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2822A7
RGBrgb(40, 34, 167)
HSLhsl(243, 66%, 39%)
HSVhsv(243, 80%, 65%)
CMYKcmyk(76%, 79.6%, 0%, 34.5%)
CIE-LABlab(24.90, 46.58, -68.98)
CIE-LCHlch(24.90, 83.24, 304.03°)
OKLaboklab(37.29% 0.0101 -0.1996)
OKLCHoklch(37.29% 0.2 272.9)
XYZxyz(8.4198, 4.3843, 36.9542)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2822A7 #A1A722
analogous
#225FA7 #2822A7 #6B22A7
triadic
#2822A7 #A72822 #22A728
tetradic
#2822A7 #A7225F #A1A722 #22A76B
square
#2822A7 #A7225F #A1A722 #22A76B
split-complementary
#2822A7 #A76B22 #5FA722
monochromatic
#100D41 #1C1874 #2822A7 #3931D5 #6A64DF

Accessibility & contrast

On white

11.19
#2822A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2822A7#FFFFFF#000000##FFFFFF
##2822A71.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2822a7;
/* rgb */ color: rgb(40, 34, 167);
/* oklch */ color: oklch(37.3% 0.200 272.9);
Tailwind
colors: {
  custom: {
    50: '#7860c3',
    500: '#2822a7',
    950: '#000000',
  },
}
SCSS
$custom: #2822a7;
$custom-light: #7860c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2822a7",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 242.707,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.19988,
    "h": 272.9
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#2822A7
secondary
#C0C560
accent
#E93FE1
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2822A7

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

Preview Lab → · Contrast checker → · Palette generator →

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