#28216A#28216A

#28216A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.122 H 280.7°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#28216A
RGBrgb(40, 33, 106)
HSLhsl(246, 53%, 27%)
HSVhsv(246, 69%, 42%)
CMYKcmyk(62.3%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.27, 26.47, -41.66)
CIE-LCHlch(18.27, 49.36, 302.43°)
OKLaboklab(30.66% 0.0227 -0.1199)
OKLCHoklch(30.66% 0.122 280.7)
XYZxyz(4.0196, 2.5792, 13.9189)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28216A #636A21
analogous
#213F6A #28216A #4C216A
triadic
#28216A #6A2821 #216A28
tetradic
#28216A #6A213F #636A21 #216A4C
square
#28216A #6A213F #636A21 #216A4C
split-complementary
#28216A #6A4C21 #3F6A21
monochromatic
#090717 #16123B #28216A #3A3099 #4E41C4

Accessibility & contrast

On white

13.85
#28216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#28216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28216A
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28216A#FFFFFF#000000##FFFFFF
##28216A1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28216a;
/* rgb */ color: rgb(40, 33, 106);
/* oklch */ color: oklch(30.7% 0.122 280.7);
Tailwind
colors: {
  custom: {
    50: '#6a5d95',
    500: '#28216a',
    950: '#000000',
  },
}
SCSS
$custom: #28216a;
$custom-light: #6a5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#28216a",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 245.753,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30659,
    "c": 0.12202,
    "h": 280.7
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#28216A
secondary
#969E49
accent
#DC4CCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28216A

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

Preview Lab → · Contrast checker → · Palette generator →

#28216A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva