#28208F#28208F

#28208F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.172 H 275.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#28208F
RGBrgb(40, 32, 143)
HSLhsl(244, 63%, 34%)
HSVhsv(244, 78%, 56%)
CMYKcmyk(72%, 77.6%, 0%, 43.9%)
CIE-LABlab(21.82, 39.83, -59.37)
CIE-LCHlch(21.82, 71.49, 303.86°)
OKLaboklab(34.34% 0.0165 -0.1716)
OKLCHoklch(34.34% 0.172 275.5)
XYZxyz(6.3479, 3.4667, 26.3159)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28208F #878F20
analogous
#20508F #28208F #60208F
triadic
#28208F #8F2820 #208F28
tetradic
#28208F #8F2050 #878F20 #208F60
square
#28208F #8F2050 #878F20 #208F60
split-complementary
#28208F #8F6020 #508F20
monochromatic
#0C0A2B #1A155D #28208F #362BC1 #5B51D8

Accessibility & contrast

On white

12.40
#28208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28208F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28208F#FFFFFF#000000##FFFFFF
##28208F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28208f;
/* rgb */ color: rgb(40, 32, 143);
/* oklch */ color: oklch(34.3% 0.172 275.5);
Tailwind
colors: {
  custom: {
    50: '#735eb1',
    500: '#28208f',
    950: '#000000',
  },
}
SCSS
$custom: #28208f;
$custom-light: #735eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28208f",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 244.324,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34336,
    "c": 0.17244,
    "h": 275.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#28208F
secondary
#B4BB4F
accent
#E641DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28208F

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

Preview Lab → · Contrast checker → · Palette generator →

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