#28518B#28518B

#28518B is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.107 H 257.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#28518B
RGBrgb(40, 81, 139)
HSLhsl(215, 55%, 35%)
HSVhsv(215, 71%, 55%)
CMYKcmyk(71.2%, 41.7%, 0%, 45.5%)
CIE-LABlab(34.39, 6.17, -36.48)
CIE-LCHlch(34.39, 37.00, 279.60°)
OKLaboklab(43.61% -0.0232 -0.1041)
OKLCHoklch(43.61% 0.107 257.4)
XYZxyz(8.4760, 8.1992, 25.5570)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28518B #8B6228
analogous
#28828B #28518B #31288B
triadic
#28518B #8B2851 #518B28
tetradic
#28518B #8B2882 #8B6228 #288B31
square
#28518B #8B2882 #8B6228 #288B31
split-complementary
#28518B #8B3128 #828B28
monochromatic
#0D1A2C #1A355B #28518B #366DBB #5D8DD0

Accessibility & contrast

On white

7.95
#28518B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#28518B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28518B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28518B#FFFFFF#000000##FFFFFF
##28518B1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568D
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28518b;
/* rgb */ color: rgb(40, 81, 139);
/* oklch */ color: oklch(43.6% 0.107 257.4);
Tailwind
colors: {
  custom: {
    50: '#6e81ad',
    500: '#28518b',
    950: '#000000',
  },
}
SCSS
$custom: #28518b;
$custom-light: #6e81ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28518b",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 139
  },
  "hsl": {
    "h": 215.152,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4361,
    "c": 0.10661,
    "h": 257.4
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#28518B
secondary
#B68F59
accent
#A149DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #28518B

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

Preview Lab → · Contrast checker → · Palette generator →

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