#28217A#28217A

#28217A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.144 H 278.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#28217A
RGBrgb(40, 33, 122)
HSLhsl(245, 57%, 30%)
HSVhsv(245, 73%, 48%)
CMYKcmyk(67.2%, 73%, 0%, 52.2%)
CIE-LABlab(19.82, 32.09, -49.45)
CIE-LCHlch(19.82, 58.95, 302.98°)
OKLaboklab(32.25% 0.0203 -0.1427)
OKLCHoklch(32.25% 0.144 278.1)
XYZxyz(4.9306, 2.9436, 18.7169)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28217A #737A21
analogous
#21467A #28217A #54217A
triadic
#28217A #7A2821 #217A28
tetradic
#28217A #7A2146 #737A21 #217A54
square
#28217A #7A2146 #737A21 #217A54
split-complementary
#28217A #7A5421 #467A21
monochromatic
#08071A #18144A #28217A #382EAA #5248CD

Accessibility & contrast

On white

13.22
#28217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28217A
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28217A#FFFFFF#000000##FFFFFF
##28217A1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28217a;
/* rgb */ color: rgb(40, 33, 122);
/* oklch */ color: oklch(32.2% 0.144 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e5da1',
    500: '#28217a',
    950: '#000000',
  },
}
SCSS
$custom: #28217a;
$custom-light: #6e5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#28217a",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 244.719,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.14416,
    "h": 278.1
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#28217A
secondary
#A5AD4A
accent
#E147D5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28217A

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

Preview Lab → · Contrast checker → · Palette generator →

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