#28518E#28518E

#28518E is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.111 H 258.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#28518E
RGBrgb(40, 81, 142)
HSLhsl(216, 56%, 36%)
HSVhsv(216, 72%, 56%)
CMYKcmyk(71.8%, 43%, 0%, 44.3%)
CIE-LABlab(34.58, 7.32, -38.03)
CIE-LCHlch(34.58, 38.72, 280.90°)
OKLaboklab(43.81% -0.0225 -0.1086)
OKLCHoklch(43.81% 0.111 258.3)
XYZxyz(8.6982, 8.2881, 26.7273)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28518E #8E6528
analogous
#28848E #28518E #32288E
triadic
#28518E #8E2851 #518E28
tetradic
#28518E #8E2884 #8E6528 #288E32
square
#28518E #8E2884 #8E6528 #288E32
split-complementary
#28518E #8E3228 #848E28
monochromatic
#0D1B2F #1B365E #28518E #356CBE #5F8DD2

Accessibility & contrast

On white

7.90
#28518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28518E
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28518E#FFFFFF#000000##FFFFFF
##28518E1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345690
Deuteranopia (green-blind)
#234D8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28518e;
/* rgb */ color: rgb(40, 81, 142);
/* oklch */ color: oklch(43.8% 0.111 258.3);
Tailwind
colors: {
  custom: {
    50: '#6f81af',
    500: '#28518e',
    950: '#000000',
  },
}
SCSS
$custom: #28518e;
$custom-light: #6f81af;
$custom-dark: #000000;
JSON
{
  "hex": "#28518e",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 215.882,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.1109,
    "h": 258.3
  },
  "luminance": 0.08289
}

Semantic roles & 50–950 ramp

primary
#28518E
secondary
#B7925B
accent
#A348DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #28518E

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

Preview Lab → · Contrast checker → · Palette generator →

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