#28518C#28518C

#28518C is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.108 H 257.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#28518C
RGBrgb(40, 81, 140)
HSLhsl(215, 56%, 35%)
HSVhsv(215, 71%, 55%)
CMYKcmyk(71.4%, 42.1%, 0%, 45.1%)
CIE-LABlab(34.45, 6.55, -37.00)
CIE-LCHlch(34.45, 37.58, 280.04°)
OKLaboklab(43.68% -0.023 -0.1056)
OKLCHoklch(43.68% 0.108 257.7)
XYZxyz(8.5494, 8.2285, 25.9436)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28518C #8C6328
analogous
#28838C #28518C #31288C
triadic
#28518C #8C2851 #518C28
tetradic
#28518C #8C2883 #8C6328 #288C31
square
#28518C #8C2883 #8C6328 #288C31
split-complementary
#28518C #8C3128 #838C28
monochromatic
#0D1A2D #1A355C #28518C #366DBC #5E8DD1

Accessibility & contrast

On white

7.94
#28518C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#28518C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28518C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28518C#FFFFFF#000000##FFFFFF
##28518C1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568E
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28518c;
/* rgb */ color: rgb(40, 81, 140);
/* oklch */ color: oklch(43.7% 0.108 257.7);
Tailwind
colors: {
  custom: {
    50: '#6f81ae',
    500: '#28518c',
    950: '#000000',
  },
}
SCSS
$custom: #28518c;
$custom-light: #6f81ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28518c",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 140
  },
  "hsl": {
    "h": 215.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43676,
    "c": 0.10804,
    "h": 257.7
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28518C

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

Preview Lab → · Contrast checker → · Palette generator →

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