#28218B#28218B

#28218B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.166 H 275.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#28218B
RGBrgb(40, 33, 139)
HSLhsl(244, 62%, 34%)
HSVhsv(244, 76%, 55%)
CMYKcmyk(71.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.59, 37.92, -57.26)
CIE-LCHlch(21.59, 68.68, 303.51°)
OKLaboklab(34.04% 0.0169 -0.1655)
OKLCHoklch(34.04% 0.166 275.8)
XYZxyz(6.0776, 3.4023, 24.7575)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218B #848B21
analogous
#214F8B #28218B #5D218B
triadic
#28218B #8B2821 #218B28
tetradic
#28218B #8B214F #848B21 #218B5D
square
#28218B #8B214F #848B21 #218B5D
split-complementary
#28218B #8B5D21 #4F8B21
monochromatic
#0C0A28 #1A155A #28218B #362DBC #5A51D6

Accessibility & contrast

On white

12.50
#28218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#28218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28218B
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218B#FFFFFF#000000##FFFFFF
##28218B1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28218b;
/* rgb */ color: rgb(40, 33, 139);
/* oklch */ color: oklch(34.0% 0.166 275.8);
Tailwind
colors: {
  custom: {
    50: '#725eae',
    500: '#28218b',
    950: '#000000',
  },
}
SCSS
$custom: #28218b;
$custom-light: #725eae;
$custom-dark: #000000;
JSON
{
  "hex": "#28218b",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 243.962,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.16639,
    "h": 275.8
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#28218B
secondary
#B2B94F
accent
#E543DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28218B

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

Preview Lab → · Contrast checker → · Palette generator →

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