#2816A1#2816A1

#2816A1 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.3% C 0.202 H 274.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2816A1
RGBrgb(40, 22, 161)
HSLhsl(248, 76%, 36%)
HSVhsv(248, 86%, 63%)
CMYKcmyk(75.2%, 86.3%, 0%, 36.9%)
CIE-LABlab(22.29, 50.28, -69.67)
CIE-LCHlch(22.29, 85.92, 305.82°)
OKLaboklab(35.28% 0.0154 -0.2014)
OKLCHoklch(35.28% 0.202 274.4)
XYZxyz(7.5929, 3.5974, 34.0055)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2816A1 #8FA116
analogous
#1649A1 #2816A1 #6D16A1
triadic
#2816A1 #A12816 #16A128
tetradic
#2816A1 #A11649 #8FA116 #16A16D
square
#2816A1 #A11649 #8FA116 #16A16D
split-complementary
#2816A1 #A16D16 #49A116
monochromatic
#0D0735 #1B0F6B #2816A1 #351DD7 #5F4BE6

Accessibility & contrast

On white

12.21
#2816A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2816A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2816A1
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2816A1#FFFFFF#000000##FFFFFF
##2816A11.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2816a1;
/* rgb */ color: rgb(40, 22, 161);
/* oklch */ color: oklch(35.3% 0.202 274.4);
Tailwind
colors: {
  custom: {
    50: '#785abe',
    500: '#2816a1',
    950: '#000000',
  },
}
SCSS
$custom: #2816a1;
$custom-light: #785abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2816a1",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 247.77,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.20198,
    "h": 274.4
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#2816A1
secondary
#B8C84B
accent
#F335DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2816A1

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

Preview Lab → · Contrast checker → · Palette generator →

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