#28407B#28407B

#28407B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.104 H 265.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#28407B
RGBrgb(40, 64, 123)
HSLhsl(223, 51%, 32%)
HSVhsv(223, 67%, 48%)
CMYKcmyk(67.5%, 48%, 0%, 51.8%)
CIE-LABlab(28.24, 11.47, -36.41)
CIE-LCHlch(28.24, 38.17, 287.49°)
OKLaboklab(38.54% -0.0087 -0.1041)
OKLCHoklch(38.54% 0.104 265.2)
XYZxyz(6.2824, 5.5474, 19.4747)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28407B #7B6328
analogous
#286A7B #28407B #3A287B
triadic
#28407B #7B2840 #407B28
tetradic
#28407B #7B286A #7B6328 #287B3A
square
#28407B #7B286A #7B6328 #287B3A
split-complementary
#28407B #7B3A28 #6A7B28
monochromatic
#0A101F #19284D #28407B #3758A9 #5677C8

Accessibility & contrast

On white

9.95
#28407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#28407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28407B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28407B#FFFFFF#000000##FFFFFF
##28407B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#143F7A
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #28407b;
/* rgb */ color: rgb(40, 64, 123);
/* oklch */ color: oklch(38.5% 0.104 265.2);
Tailwind
colors: {
  custom: {
    50: '#6c74a1',
    500: '#28407b',
    950: '#000000',
  },
}
SCSS
$custom: #28407b;
$custom-light: #6c74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28407b",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 222.651,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38536,
    "c": 0.10448,
    "h": 265.2
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#28407B
secondary
#AD9352
accent
#B24DDA
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #28407B

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

Preview Lab → · Contrast checker → · Palette generator →

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