#28408D#28408D

#28408D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.131 H 267.2°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#28408D
RGBrgb(40, 64, 141)
HSLhsl(226, 56%, 35%)
HSVhsv(226, 72%, 55%)
CMYKcmyk(71.6%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.51, 18.42, -45.55)
CIE-LCHlch(29.51, 49.13, 292.02°)
OKLaboklab(39.91% -0.0065 -0.131)
OKLCHoklch(39.91% 0.131 267.2)
XYZxyz(7.5145, 6.0402, 25.9640)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28408D #8D7528
analogous
#28728D #28408D #43288D
triadic
#28408D #8D2840 #408D28
tetradic
#28408D #8D2872 #8D7528 #288D43
square
#28408D #8D2872 #8D7528 #288D43
split-complementary
#28408D #8D4328 #728D28
monochromatic
#0D152E #1A2A5D #28408D #3656BD #5E79D1

Accessibility & contrast

On white

9.51
#28408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#28408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28408D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28408D#FFFFFF#000000##FFFFFF
##28408D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #28408d;
/* rgb */ color: rgb(40, 64, 141);
/* oklch */ color: oklch(39.9% 0.131 267.2);
Tailwind
colors: {
  custom: {
    50: '#6f74af',
    500: '#28408d',
    950: '#000000',
  },
}
SCSS
$custom: #28408d;
$custom-light: #6f74af;
$custom-dark: #000000;
JSON
{
  "hex": "#28408d",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 225.743,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39912,
    "c": 0.13117,
    "h": 267.2
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#28408D
secondary
#B7A15A
accent
#BB49DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #28408D

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

Preview Lab → · Contrast checker → · Palette generator →

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