#2820A5#2820A5

#2820A5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.199 H 273.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2820A5
RGBrgb(40, 32, 165)
HSLhsl(244, 68%, 39%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(75.8%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.32, 46.96, -68.74)
CIE-LCHlch(24.32, 83.25, 304.34°)
OKLaboklab(36.82% 0.0113 -0.1989)
OKLCHoklch(36.82% 0.199 273.2)
XYZxyz(8.1808, 4.1999, 35.9695)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2820A5 #9DA520
analogous
#205AA5 #2820A5 #6A20A5
triadic
#2820A5 #A52820 #20A528
tetradic
#2820A5 #A5205A #9DA520 #20A56A
square
#2820A5 #A5205A #9DA520 #20A56A
split-complementary
#2820A5 #A56A20 #5AA520
monochromatic
#0F0C3E #1C1672 #2820A5 #362CD6 #675FE0

Accessibility & contrast

On white

11.41
#2820A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2820A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2820A5
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2820A5#FFFFFF#000000##FFFFFF
##2820A51.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2820a5;
/* rgb */ color: rgb(40, 32, 165);
/* oklch */ color: oklch(36.8% 0.199 273.2);
Tailwind
colors: {
  custom: {
    50: '#785fc1',
    500: '#2820a5',
    950: '#000000',
  },
}
SCSS
$custom: #2820a5;
$custom-light: #785fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2820a5",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 243.609,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36818,
    "c": 0.19919,
    "h": 273.2
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#2820A5
secondary
#BEC55C
accent
#EA3DE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2820A5

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

Preview Lab → · Contrast checker → · Palette generator →

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