#28216E#28216E

#28216E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.128 H 280.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#28216E
RGBrgb(40, 33, 110)
HSLhsl(245, 54%, 28%)
HSVhsv(245, 70%, 43%)
CMYKcmyk(63.6%, 70%, 0%, 56.9%)
CIE-LABlab(18.65, 27.89, -43.65)
CIE-LCHlch(18.65, 51.80, 302.57°)
OKLaboklab(31.05% 0.0222 -0.1257)
OKLCHoklch(31.05% 0.128 280)
XYZxyz(4.2325, 2.6643, 15.0401)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28216E #676E21
analogous
#21406E #28216E #4E216E
triadic
#28216E #6E2821 #216E28
tetradic
#28216E #6E2140 #676E21 #216E4E
square
#28216E #6E2140 #676E21 #216E4E
split-complementary
#28216E #6E4E21 #406E21
monochromatic
#090718 #17133F #28216E #392F9D #4F43C7

Accessibility & contrast

On white

13.70
#28216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#28216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28216E
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28216E#FFFFFF#000000##FFFFFF
##28216E1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28216e;
/* rgb */ color: rgb(40, 33, 110);
/* oklch */ color: oklch(31.0% 0.128 280.0);
Tailwind
colors: {
  custom: {
    50: '#6b5d98',
    500: '#28216e',
    950: '#000000',
  },
}
SCSS
$custom: #28216e;
$custom-light: #6b5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#28216e",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 245.455,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31045,
    "c": 0.12768,
    "h": 280
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#28216E
secondary
#9AA249
accent
#DD4BD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #28216E

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

Preview Lab → · Contrast checker → · Palette generator →

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