#28518F#28518F

#28518F is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.112 H 258.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#28518F
RGBrgb(40, 81, 143)
HSLhsl(216, 56%, 36%)
HSVhsv(216, 72%, 56%)
CMYKcmyk(72%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.64, 7.71, -38.54)
CIE-LCHlch(34.64, 39.30, 281.31°)
OKLaboklab(43.88% -0.0223 -0.1101)
OKLCHoklch(43.88% 0.112 258.6)
XYZxyz(8.7736, 8.3182, 27.1245)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28518F #8F6628
analogous
#28848F #28518F #33288F
triadic
#28518F #8F2851 #518F28
tetradic
#28518F #8F2884 #8F6628 #288F33
square
#28518F #8F2884 #8F6628 #288F33
split-complementary
#28518F #8F3328 #848F28
monochromatic
#0D1B2F #1B365F #28518F #356CBF #5F8DD2

Accessibility & contrast

On white

7.88
#28518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#28518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28518F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28518F#FFFFFF#000000##FFFFFF
##28518F1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335791
Deuteranopia (green-blind)
#224D8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28518f;
/* rgb */ color: rgb(40, 81, 143);
/* oklch */ color: oklch(43.9% 0.112 258.6);
Tailwind
colors: {
  custom: {
    50: '#6f81b0',
    500: '#28518f',
    950: '#000000',
  },
}
SCSS
$custom: #28518f;
$custom-light: #6f81b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28518f",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 216.117,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43877,
    "c": 0.11232,
    "h": 258.6
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#28518F
secondary
#B8935B
accent
#A348E0
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #28518F

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

Preview Lab → · Contrast checker → · Palette generator →

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