#28208E#28208E

#28208E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 275.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#28208E
RGBrgb(40, 32, 142)
HSLhsl(244, 63%, 34%)
HSVhsv(244, 77%, 56%)
CMYKcmyk(71.8%, 77.5%, 0%, 44.3%)
CIE-LABlab(21.71, 39.50, -58.93)
CIE-LCHlch(21.71, 70.94, 303.83°)
OKLaboklab(34.23% 0.0168 -0.1704)
OKLCHoklch(34.23% 0.171 275.6)
XYZxyz(6.2725, 3.4365, 25.9187)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28208E #868E20
analogous
#204F8E #28208E #5F208E
triadic
#28208E #8E2820 #208E28
tetradic
#28208E #8E204F #868E20 #208E5F
square
#28208E #8E204F #868E20 #208E5F
split-complementary
#28208E #8E5F20 #4F8E20
monochromatic
#0C092A #1A155C #28208E #362BC0 #5B51D8

Accessibility & contrast

On white

12.45
#28208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28208E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28208E#FFFFFF#000000##FFFFFF
##28208E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28208e;
/* rgb */ color: rgb(40, 32, 142);
/* oklch */ color: oklch(34.2% 0.171 275.6);
Tailwind
colors: {
  custom: {
    50: '#725eb0',
    500: '#28208e',
    950: '#000000',
  },
}
SCSS
$custom: #28208e;
$custom-light: #725eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28208e",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 244.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.17118,
    "h": 275.6
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#28208E
secondary
#B3BB4F
accent
#E642DA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28208E

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

Preview Lab → · Contrast checker → · Palette generator →

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