#28218A#28218A

#28218A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.165 H 275.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#28218A
RGBrgb(40, 33, 138)
HSLhsl(244, 61%, 34%)
HSVhsv(244, 76%, 54%)
CMYKcmyk(71%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.48, 37.58, -56.82)
CIE-LCHlch(21.48, 68.12, 303.49°)
OKLaboklab(33.93% 0.0171 -0.1642)
OKLCHoklch(33.93% 0.165 275.9)
XYZxyz(6.0049, 3.3733, 24.3745)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218A #838A21
analogous
#214E8A #28218A #5C218A
triadic
#28218A #8A2821 #218A28
tetradic
#28218A #8A214E #838A21 #218A5C
square
#28218A #8A214E #838A21 #218A5C
split-complementary
#28218A #8A5C21 #4E8A21
monochromatic
#0B0927 #1A1559 #28218A #362DBB #5950D5

Accessibility & contrast

On white

12.54
#28218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28218A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218A#FFFFFF#000000##FFFFFF
##28218A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28218a;
/* rgb */ color: rgb(40, 33, 138);
/* oklch */ color: oklch(33.9% 0.165 275.9);
Tailwind
colors: {
  custom: {
    50: '#715ead',
    500: '#28218a',
    950: '#000000',
  },
}
SCSS
$custom: #28218a;
$custom-light: #715ead;
$custom-dark: #000000;
JSON
{
  "hex": "#28218a",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 244,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.16512,
    "h": 275.9
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28218A

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

Preview Lab → · Contrast checker → · Palette generator →

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