#28579F#28579F

#28579F is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.4% C 0.128 H 258.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#28579F
RGBrgb(40, 87, 159)
HSLhsl(216, 60%, 39%)
HSVhsv(216, 75%, 62%)
CMYKcmyk(74.8%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.43, 9.93, -43.74)
CIE-LCHlch(37.43, 44.85, 282.79°)
OKLaboklab(46.36% -0.0247 -0.1253)
OKLCHoklch(46.36% 0.128 258.8)
XYZxyz(10.5390, 9.7695, 34.1244)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28579F #9F7028
analogous
#28939F #28579F #35289F
triadic
#28579F #9F2857 #579F28
tetradic
#28579F #9F2893 #9F7028 #289F35
square
#28579F #9F2893 #9F7028 #289F35
split-complementary
#28579F #9F3528 #939F28
monochromatic
#0F213D #1C3C6E #28579F #3772CD #6895D9

Accessibility & contrast

On white

7.11
#28579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#28579F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28579F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28579F#FFFFFF#000000##FFFFFF
##28579F1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#1B539E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #28579f;
/* rgb */ color: rgb(40, 87, 159);
/* oklch */ color: oklch(46.4% 0.128 258.8);
Tailwind
colors: {
  custom: {
    50: '#7285bc',
    500: '#28579f',
    950: '#000000',
  },
}
SCSS
$custom: #28579f;
$custom-light: #7285bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28579f",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 216.303,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46355,
    "c": 0.12769,
    "h": 258.8
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#28579F
secondary
#BF9B64
accent
#A545E3
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #28579F

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

Preview Lab → · Contrast checker → · Palette generator →

#28579F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva