#28208D#28208D

#28208D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.170 H 275.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#28208D
RGBrgb(40, 32, 141)
HSLhsl(244, 63%, 34%)
HSVhsv(244, 77%, 55%)
CMYKcmyk(71.6%, 77.3%, 0%, 44.7%)
CIE-LABlab(21.60, 39.16, -58.49)
CIE-LCHlch(21.60, 70.39, 303.81°)
OKLaboklab(34.12% 0.017 -0.1691)
OKLCHoklch(34.12% 0.17 275.7)
XYZxyz(6.1977, 3.4066, 25.5251)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28208D #858D20
analogous
#204F8D #28208D #5F208D
triadic
#28208D #8D2820 #208D28
tetradic
#28208D #8D204F #858D20 #208D5F
square
#28208D #8D204F #858D20 #208D5F
split-complementary
#28208D #8D5F20 #4F8D20
monochromatic
#0C0929 #1A155B #28208D #362BBF #5A50D7

Accessibility & contrast

On white

12.49
#28208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#28208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28208D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28208D#FFFFFF#000000##FFFFFF
##28208D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28208d;
/* rgb */ color: rgb(40, 32, 141);
/* oklch */ color: oklch(34.1% 0.170 275.7);
Tailwind
colors: {
  custom: {
    50: '#725eaf',
    500: '#28208d',
    950: '#000000',
  },
}
SCSS
$custom: #28208d;
$custom-light: #725eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#28208d",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 244.404,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34116,
    "c": 0.16993,
    "h": 275.7
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#28208D
secondary
#B3BA4E
accent
#E642DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28208D

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

Preview Lab → · Contrast checker → · Palette generator →

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