#28408E#28408E

#28408E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.133 H 267.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#28408E
RGBrgb(40, 64, 142)
HSLhsl(226, 56%, 36%)
HSVhsv(226, 72%, 56%)
CMYKcmyk(71.8%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.59, 18.80, -46.05)
CIE-LCHlch(29.59, 49.74, 292.21°)
OKLaboklab(39.99% -0.0064 -0.1325)
OKLCHoklch(39.99% 0.133 267.2)
XYZxyz(7.5893, 6.0701, 26.3576)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28408E #8E7628
analogous
#28738E #28408E #43288E
triadic
#28408E #8E2840 #408E28
tetradic
#28408E #8E2873 #8E7628 #288E43
square
#28408E #8E2873 #8E7628 #288E43
split-complementary
#28408E #8E4328 #738E28
monochromatic
#0D152F #1B2A5E #28408E #3556BE #5F7AD2

Accessibility & contrast

On white

9.48
#28408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28408E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28408E#FFFFFF#000000##FFFFFF
##28408E1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #28408e;
/* rgb */ color: rgb(40, 64, 142);
/* oklch */ color: oklch(40.0% 0.133 267.2);
Tailwind
colors: {
  custom: {
    50: '#7074b0',
    500: '#28408e',
    950: '#000000',
  },
}
SCSS
$custom: #28408e;
$custom-light: #7074b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28408e",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 225.882,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39992,
    "c": 0.13262,
    "h": 267.2
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#28408E
secondary
#B7A15B
accent
#BC48DF
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #28408E

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

Preview Lab → · Contrast checker → · Palette generator →

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