#28408C#28408C

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

Color values

HEX#28408C
RGBrgb(40, 64, 140)
HSLhsl(226, 56%, 35%)
HSVhsv(226, 71%, 55%)
CMYKcmyk(71.4%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.44, 18.03, -45.05)
CIE-LCHlch(29.44, 48.53, 291.81°)
OKLaboklab(39.83% -0.0066 -0.1295)
OKLCHoklch(39.83% 0.13 267.1)
XYZxyz(7.4405, 6.0106, 25.5739)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28408C #8C7428
analogous
#28728C #28408C #42288C
triadic
#28408C #8C2840 #408C28
tetradic
#28408C #8C2872 #8C7428 #288C42
square
#28408C #8C2872 #8C7428 #288C42
split-complementary
#28408C #8C4228 #728C28
monochromatic
#0D142D #1A2A5C #28408C #3656BC #5E79D1

Accessibility & contrast

On white

9.54
#28408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28408C
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28408C#FFFFFF#000000##FFFFFF
##28408C1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #28408c;
/* rgb */ color: rgb(40, 64, 140);
/* oklch */ color: oklch(39.8% 0.130 267.1);
Tailwind
colors: {
  custom: {
    50: '#6f74ae',
    500: '#28408c',
    950: '#000000',
  },
}
SCSS
$custom: #28408c;
$custom-light: #6f74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28408c",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 225.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39832,
    "c": 0.12972,
    "h": 267.1
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28408C

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

Preview Lab → · Contrast checker → · Palette generator →

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