#28208A#28208A

#28208A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.166 H 276.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#28208A
RGBrgb(40, 32, 138)
HSLhsl(245, 62%, 33%)
HSVhsv(245, 77%, 54%)
CMYKcmyk(71%, 76.8%, 0%, 45.9%)
CIE-LABlab(21.28, 38.16, -57.15)
CIE-LCHlch(21.28, 68.72, 303.73°)
OKLaboklab(33.79% 0.0177 -0.1652)
OKLCHoklch(33.79% 0.166 276.1)
XYZxyz(5.9775, 3.3186, 24.3654)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28208A #828A20
analogous
#204D8A #28208A #5D208A
triadic
#28208A #8A2820 #208A28
tetradic
#28208A #8A204D #828A20 #208A5D
square
#28208A #8A204D #828A20 #208A5D
split-complementary
#28208A #8A5D20 #4D8A20
monochromatic
#0B0927 #1A1458 #28208A #362CBC #594ED6

Accessibility & contrast

On white

12.62
#28208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#28208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28208A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28208A#FFFFFF#000000##FFFFFF
##28208A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28208a;
/* rgb */ color: rgb(40, 32, 138);
/* oklch */ color: oklch(33.8% 0.166 276.1);
Tailwind
colors: {
  custom: {
    50: '#715dad',
    500: '#28208a',
    950: '#000000',
  },
}
SCSS
$custom: #28208a;
$custom-light: #715dad;
$custom-dark: #000000;
JSON
{
  "hex": "#28208a",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 244.528,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33788,
    "c": 0.16614,
    "h": 276.1
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#28208A
secondary
#B1B94D
accent
#E542D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28208A

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

Preview Lab → · Contrast checker → · Palette generator →

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