#28216B#28216B

#28216B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.123 H 280.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#28216B
RGBrgb(40, 33, 107)
HSLhsl(246, 53%, 27%)
HSVhsv(246, 69%, 42%)
CMYKcmyk(62.6%, 69.2%, 0%, 58%)
CIE-LABlab(18.37, 26.83, -42.16)
CIE-LCHlch(18.37, 49.97, 302.47°)
OKLaboklab(30.76% 0.0226 -0.1214)
OKLCHoklch(30.76% 0.123 280.5)
XYZxyz(4.0719, 2.6001, 14.1944)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28216B #646B21
analogous
#213F6B #28216B #4D216B
triadic
#28216B #6B2821 #216B28
tetradic
#28216B #6B213F #646B21 #216B4D
square
#28216B #6B213F #646B21 #216B4D
split-complementary
#28216B #6B4D21 #3F6B21
monochromatic
#090717 #17133C #28216B #392F9A #4E42C5

Accessibility & contrast

On white

13.82
#28216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28216B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28216B#FFFFFF#000000##FFFFFF
##28216B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28216b;
/* rgb */ color: rgb(40, 33, 107);
/* oklch */ color: oklch(30.8% 0.123 280.5);
Tailwind
colors: {
  custom: {
    50: '#6a5d96',
    500: '#28216b',
    950: '#000000',
  },
}
SCSS
$custom: #28216b;
$custom-light: #6a5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#28216b",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 245.676,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30755,
    "c": 0.12344,
    "h": 280.5
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#28216B
secondary
#979F49
accent
#DC4CCF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28216B

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

Preview Lab → · Contrast checker → · Palette generator →

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