#28579B#28579B

#28579B is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.122 H 257.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#28579B
RGBrgb(40, 87, 155)
HSLhsl(215, 59%, 38%)
HSVhsv(215, 74%, 61%)
CMYKcmyk(74.2%, 43.9%, 0%, 39.2%)
CIE-LABlab(37.18, 8.38, -41.74)
CIE-LCHlch(37.18, 42.57, 281.36°)
OKLaboklab(46.08% -0.0255 -0.1194)
OKLCHoklch(46.08% 0.122 257.9)
XYZxyz(10.1975, 9.6329, 32.3259)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28579B #9B6C28
analogous
#28909B #28579B #32289B
triadic
#28579B #9B2857 #579B28
tetradic
#28579B #9B2890 #9B6C28 #289B32
square
#28579B #9B2890 #9B6C28 #289B32
split-complementary
#28579B #9B3228 #909B28
monochromatic
#0F203A #1B3C6A #28579B #3572CB #6694D7

Accessibility & contrast

On white

7.18
#28579B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#28579B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28579B
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28579B#FFFFFF#000000##FFFFFF
##28579B1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365D9E
Deuteranopia (green-blind)
#21539A
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #28579b;
/* rgb */ color: rgb(40, 87, 155);
/* oklch */ color: oklch(46.1% 0.122 257.9);
Tailwind
colors: {
  custom: {
    50: '#7285b9',
    500: '#28579b',
    950: '#000000',
  },
}
SCSS
$custom: #28579b;
$custom-light: #7285b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28579b",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 155
  },
  "hsl": {
    "h": 215.478,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.12209,
    "h": 257.9
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#28579B
secondary
#BD9861
accent
#A246E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #28579B

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

Preview Lab → · Contrast checker → · Palette generator →

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