#2816B3#2816B3

#2816B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.222 H 272.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2816B3
RGBrgb(40, 22, 179)
HSLhsl(247, 78%, 39%)
HSVhsv(247, 88%, 70%)
CMYKcmyk(77.7%, 87.7%, 0%, 29.8%)
CIE-LABlab(24.57, 55.49, -76.75)
CIE-LCHlch(24.57, 94.71, 305.86°)
OKLaboklab(37.48% 0.0101 -0.2219)
OKLCHoklch(37.48% 0.222 272.6)
XYZxyz(9.2959, 4.2786, 42.9750)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2816B3 #A1B316
analogous
#1653B3 #2816B3 #7716B3
triadic
#2816B3 #B32816 #16B328
tetradic
#2816B3 #B31653 #A1B316 #16B377
square
#2816B3 #B31653 #A1B316 #16B377
split-complementary
#2816B3 #B37716 #53B316
monochromatic
#100946 #1C0F7C #2816B3 #3922E4 #6A59EB

Accessibility & contrast

On white

11.31
#2816B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2816B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2816B3
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2816B3#FFFFFF#000000##FFFFFF
##2816B31.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2816b3;
/* rgb */ color: rgb(40, 22, 179);
/* oklch */ color: oklch(37.5% 0.222 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c5bcb',
    500: '#2816b3',
    950: '#000000',
  },
}
SCSS
$custom: #2816b3;
$custom-light: #7c5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2816b3",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 179
  },
  "hsl": {
    "h": 246.879,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.22212,
    "h": 272.6
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#2816B3
secondary
#C0CE57
accent
#F533DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2816B3

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

Preview Lab → · Contrast checker → · Palette generator →

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