#28218C#28218C

#28218C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.168 H 275.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#28218C
RGBrgb(40, 33, 140)
HSLhsl(244, 62%, 34%)
HSVhsv(244, 76%, 55%)
CMYKcmyk(71.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.70, 38.26, -57.71)
CIE-LCHlch(21.70, 69.24, 303.54°)
OKLaboklab(34.15% 0.0167 -0.1668)
OKLCHoklch(34.15% 0.168 275.7)
XYZxyz(6.1510, 3.4317, 25.1441)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218C #858C21
analogous
#21508C #28218C #5E218C
triadic
#28218C #8C2821 #218C28
tetradic
#28218C #8C2150 #858C21 #218C5E
square
#28218C #8C2150 #858C21 #218C5E
split-complementary
#28218C #8C5E21 #508C21
monochromatic
#0C0A29 #1A155A #28218C #362DBE #5A51D6

Accessibility & contrast

On white

12.45
#28218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28218C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218C#FFFFFF#000000##FFFFFF
##28218C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28218c;
/* rgb */ color: rgb(40, 33, 140);
/* oklch */ color: oklch(34.1% 0.168 275.7);
Tailwind
colors: {
  custom: {
    50: '#725eaf',
    500: '#28218c',
    950: '#000000',
  },
}
SCSS
$custom: #28218c;
$custom-light: #725eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#28218c",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 243.925,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34148,
    "c": 0.16766,
    "h": 275.7
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#28218C
secondary
#B3B94F
accent
#E543DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #28218C

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

Preview Lab → · Contrast checker → · Palette generator →

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