#2820A0#2820A0

#2820A0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.193 H 273.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2820A0
RGBrgb(40, 32, 160)
HSLhsl(244, 67%, 38%)
HSVhsv(244, 80%, 63%)
CMYKcmyk(75%, 80%, 0%, 37.3%)
CIE-LABlab(23.74, 45.37, -66.66)
CIE-LCHlch(23.74, 80.63, 304.24°)
OKLaboklab(36.24% 0.0125 -0.1928)
OKLCHoklch(36.24% 0.193 273.7)
XYZxyz(7.7346, 4.0214, 33.6195)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2820A0 #98A020
analogous
#2058A0 #2820A0 #6820A0
triadic
#2820A0 #A02820 #20A028
tetradic
#2820A0 #A02058 #98A020 #20A068
square
#2820A0 #A02058 #98A020 #20A068
split-complementary
#2820A0 #A06820 #58A020
monochromatic
#0E0C3A #1B166D #2820A0 #352AD3 #645CDE

Accessibility & contrast

On white

11.64
#2820A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2820A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2820A0
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2820A0#FFFFFF#000000##FFFFFF
##2820A01.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2820a0;
/* rgb */ color: rgb(40, 32, 160);
/* oklch */ color: oklch(36.2% 0.193 273.7);
Tailwind
colors: {
  custom: {
    50: '#775fbd',
    500: '#2820a0',
    950: '#000000',
  },
}
SCSS
$custom: #2820a0;
$custom-light: #775fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2820a0",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 243.75,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36245,
    "c": 0.19323,
    "h": 273.7
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#2820A0
secondary
#BCC359
accent
#EA3EDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2820A0

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

Preview Lab → · Contrast checker → · Palette generator →

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