#28518A#28518A

#28518A is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.105 H 257.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#28518A
RGBrgb(40, 81, 138)
HSLhsl(215, 55%, 35%)
HSVhsv(215, 71%, 54%)
CMYKcmyk(71%, 41.3%, 0%, 45.9%)
CIE-LABlab(34.33, 5.78, -35.97)
CIE-LCHlch(34.33, 36.43, 279.14°)
OKLaboklab(43.54% -0.0234 -0.1025)
OKLCHoklch(43.54% 0.105 257.1)
XYZxyz(8.4033, 8.1701, 25.1739)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28518A #8A6128
analogous
#28828A #28518A #30288A
triadic
#28518A #8A2851 #518A28
tetradic
#28518A #8A2882 #8A6128 #288A30
square
#28518A #8A2882 #8A6128 #288A30
split-complementary
#28518A #8A3028 #828A28
monochromatic
#0C192B #1A355B #28518A #366DB9 #5D8DD0

Accessibility & contrast

On white

7.97
#28518A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#28518A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28518A
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28518A#FFFFFF#000000##FFFFFF
##28518A1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568C
Deuteranopia (green-blind)
#274D89
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28518a;
/* rgb */ color: rgb(40, 81, 138);
/* oklch */ color: oklch(43.5% 0.105 257.1);
Tailwind
colors: {
  custom: {
    50: '#6e81ac',
    500: '#28518a',
    950: '#000000',
  },
}
SCSS
$custom: #28518a;
$custom-light: #6e81ac;
$custom-dark: #000000;
JSON
{
  "hex": "#28518a",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 138
  },
  "hsl": {
    "h": 214.898,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43544,
    "c": 0.10518,
    "h": 257.1
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#28518A
secondary
#B58E59
accent
#A049DE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #28518A

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

Preview Lab → · Contrast checker → · Palette generator →

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