#28408B#28408B

#28408B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.128 H 267.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#28408B
RGBrgb(40, 64, 139)
HSLhsl(225, 55%, 35%)
HSVhsv(225, 71%, 55%)
CMYKcmyk(71.2%, 54%, 0%, 45.5%)
CIE-LABlab(29.37, 17.64, -44.56)
CIE-LCHlch(29.37, 47.92, 291.60°)
OKLaboklab(39.75% -0.0067 -0.1281)
OKLCHoklch(39.75% 0.128 267)
XYZxyz(7.3671, 5.9813, 25.1873)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28408B #8B7328
analogous
#28718B #28408B #42288B
triadic
#28408B #8B2840 #408B28
tetradic
#28408B #8B2871 #8B7328 #288B42
square
#28408B #8B2871 #8B7328 #288B42
split-complementary
#28408B #8B4228 #718B28
monochromatic
#0D142C #1A2A5B #28408B #3656BB #5D79D0

Accessibility & contrast

On white

9.56
#28408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#28408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28408B
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28408B#FFFFFF#000000##FFFFFF
##28408B1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #28408b;
/* rgb */ color: rgb(40, 64, 139);
/* oklch */ color: oklch(39.8% 0.128 267.0);
Tailwind
colors: {
  custom: {
    50: '#6f74ad',
    500: '#28408b',
    950: '#000000',
  },
}
SCSS
$custom: #28408b;
$custom-light: #6f74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28408b",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 225.455,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39752,
    "c": 0.12826,
    "h": 267
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#28408B
secondary
#B69F59
accent
#BA49DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #28408B

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

Preview Lab → · Contrast checker → · Palette generator →

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