#2816A5#2816A5

#2816A5 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.8% C 0.207 H 273.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2816A5
RGBrgb(40, 22, 165)
HSLhsl(248, 76%, 37%)
HSVhsv(248, 87%, 65%)
CMYKcmyk(75.8%, 86.7%, 0%, 35.3%)
CIE-LABlab(22.80, 51.46, -71.27)
CIE-LCHlch(22.80, 87.91, 305.83°)
OKLaboklab(35.77% 0.0142 -0.206)
OKLCHoklch(35.77% 0.207 273.9)
XYZxyz(7.9513, 3.7407, 35.8930)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2816A5 #93A516
analogous
#164CA5 #2816A5 #7016A5
triadic
#2816A5 #A52816 #16A528
tetradic
#2816A5 #A5164C #93A516 #16A570
square
#2816A5 #A5164C #93A516 #16A570
split-complementary
#2816A5 #A57016 #4CA516
monochromatic
#0E0839 #1B0F6F #2816A5 #351DDB #614EE7

Accessibility & contrast

On white

12.01
#2816A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2816A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2816A5
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2816A5#FFFFFF#000000##FFFFFF
##2816A51.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA9
Deuteranopia (green-blind)
#0030A3
Tritanopia (blue-blind)
#004661
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2816a5;
/* rgb */ color: rgb(40, 22, 165);
/* oklch */ color: oklch(35.8% 0.207 273.9);
Tailwind
colors: {
  custom: {
    50: '#795ac1',
    500: '#2816a5',
    950: '#000000',
  },
}
SCSS
$custom: #2816a5;
$custom-light: #795ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2816a5",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 165
  },
  "hsl": {
    "h": 247.552,
    "s": 76.471,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.20652,
    "h": 273.9
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#2816A5
secondary
#BAC94E
accent
#F335DB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2816A5

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

Preview Lab → · Contrast checker → · Palette generator →

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