#2816AB#2816AB

#2816AB is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.5% C 0.213 H 273.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2816AB
RGBrgb(40, 22, 171)
HSLhsl(247, 77%, 38%)
HSVhsv(247, 87%, 67%)
CMYKcmyk(76.6%, 87.1%, 0%, 32.9%)
CIE-LABlab(23.55, 53.20, -73.64)
CIE-LCHlch(23.55, 90.85, 305.84°)
OKLaboklab(36.5% 0.0124 -0.2129)
OKLCHoklch(36.5% 0.213 273.3)
XYZxyz(8.5102, 3.9643, 38.8369)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2816AB #99AB16
analogous
#164FAB #2816AB #7216AB
triadic
#2816AB #AB2816 #16AB28
tetradic
#2816AB #AB164F #99AB16 #16AB72
square
#2816AB #AB164F #99AB16 #16AB72
split-complementary
#2816AB #AB7216 #4FAB16
monochromatic
#0F083F #1B0F75 #2816AB #351DE1 #6553E9

Accessibility & contrast

On white

11.71
#2816AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2816AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2816AB
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2816AB#FFFFFF#000000##FFFFFF
##2816AB1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAF
Deuteranopia (green-blind)
#0031A9
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2816ab;
/* rgb */ color: rgb(40, 22, 171);
/* oklch */ color: oklch(36.5% 0.213 273.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bc6',
    500: '#2816ab',
    950: '#000000',
  },
}
SCSS
$custom: #2816ab;
$custom-light: #7a5bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2816ab",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 171
  },
  "hsl": {
    "h": 247.248,
    "s": 77.202,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36498,
    "c": 0.21325,
    "h": 273.3
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#2816AB
secondary
#BDCB52
accent
#F434DD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2816AB

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

Preview Lab → · Contrast checker → · Palette generator →

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