#2820A1#2820A1

#2820A1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.194 H 273.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2820A1
RGBrgb(40, 32, 161)
HSLhsl(244, 67%, 38%)
HSVhsv(244, 80%, 63%)
CMYKcmyk(75.2%, 80.1%, 0%, 36.9%)
CIE-LABlab(23.86, 45.69, -67.08)
CIE-LCHlch(23.86, 81.16, 304.26°)
OKLaboklab(36.36% 0.0123 -0.194)
OKLCHoklch(36.36% 0.194 273.6)
XYZxyz(7.8225, 4.0565, 34.0820)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2820A1 #99A120
analogous
#2058A1 #2820A1 #6820A1
triadic
#2820A1 #A12820 #20A128
tetradic
#2820A1 #A12058 #99A120 #20A168
square
#2820A1 #A12058 #99A120 #20A168
split-complementary
#2820A1 #A16820 #58A120
monochromatic
#0F0C3B #1B166E #2820A1 #352AD4 #655DDF

Accessibility & contrast

On white

11.59
#2820A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2820A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2820A1
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2820A1#FFFFFF#000000##FFFFFF
##2820A11.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2820a1;
/* rgb */ color: rgb(40, 32, 161);
/* oklch */ color: oklch(36.4% 0.194 273.6);
Tailwind
colors: {
  custom: {
    50: '#775fbe',
    500: '#2820a1',
    950: '#000000',
  },
}
SCSS
$custom: #2820a1;
$custom-light: #775fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2820a1",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 243.721,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36359,
    "c": 0.19444,
    "h": 273.6
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#2820A1
secondary
#BDC35A
accent
#EA3EDF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2820A1

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

Preview Lab → · Contrast checker → · Palette generator →

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