#28216C#28216C

#28216C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.125 H 280.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#28216C
RGBrgb(40, 33, 108)
HSLhsl(246, 53%, 28%)
HSVhsv(246, 69%, 42%)
CMYKcmyk(63%, 69.4%, 0%, 57.6%)
CIE-LABlab(18.46, 27.18, -42.66)
CIE-LCHlch(18.46, 50.58, 302.50°)
OKLaboklab(30.85% 0.0225 -0.1228)
OKLCHoklch(30.85% 0.125 280.4)
XYZxyz(4.1248, 2.6212, 14.4730)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28216C #656C21
analogous
#213F6C #28216C #4D216C
triadic
#28216C #6C2821 #216C28
tetradic
#28216C #6C213F #656C21 #216C4D
square
#28216C #6C213F #656C21 #216C4D
split-complementary
#28216C #6C4D21 #3F6C21
monochromatic
#090717 #17133D #28216C #392F9B #4E42C5

Accessibility & contrast

On white

13.78
#28216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28216C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28216C#FFFFFF#000000##FFFFFF
##28216C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28216c;
/* rgb */ color: rgb(40, 33, 108);
/* oklch */ color: oklch(30.9% 0.125 280.4);
Tailwind
colors: {
  custom: {
    50: '#6b5d97',
    500: '#28216c',
    950: '#000000',
  },
}
SCSS
$custom: #28216c;
$custom-light: #6b5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#28216c",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 245.6,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30851,
    "c": 0.12487,
    "h": 280.4
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#28216C
secondary
#98A049
accent
#DD4BCF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28216C

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

Preview Lab → · Contrast checker → · Palette generator →

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