#28208B#28208B

#28208B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.167 H 276.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#28208B
RGBrgb(40, 32, 139)
HSLhsl(244, 63%, 34%)
HSVhsv(244, 77%, 55%)
CMYKcmyk(71.2%, 77%, 0%, 45.5%)
CIE-LABlab(21.39, 38.50, -57.60)
CIE-LCHlch(21.39, 69.28, 303.76°)
OKLaboklab(33.9% 0.0174 -0.1665)
OKLCHoklch(33.9% 0.167 276)
XYZxyz(6.0503, 3.3477, 24.7484)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28208B #838B20
analogous
#204D8B #28208B #5D208B
triadic
#28208B #8B2820 #208B28
tetradic
#28208B #8B204D #838B20 #208B5D
square
#28208B #8B204D #838B20 #208B5D
split-complementary
#28208B #8B5D20 #4D8B20
monochromatic
#0B0928 #1A1559 #28208B #362BBD #594FD6

Accessibility & contrast

On white

12.58
#28208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28208B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28208B#FFFFFF#000000##FFFFFF
##28208B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28208b;
/* rgb */ color: rgb(40, 32, 139);
/* oklch */ color: oklch(33.9% 0.167 276.0);
Tailwind
colors: {
  custom: {
    50: '#725dae',
    500: '#28208b',
    950: '#000000',
  },
}
SCSS
$custom: #28208b;
$custom-light: #725dae;
$custom-dark: #000000;
JSON
{
  "hex": "#28208b",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 244.486,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33897,
    "c": 0.1674,
    "h": 276
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#28208B
secondary
#B1BA4D
accent
#E642D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28208B

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

Preview Lab → · Contrast checker → · Palette generator →

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