#28218E#28218E

#28218E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 275.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#28218E
RGBrgb(40, 33, 142)
HSLhsl(244, 62%, 34%)
HSVhsv(244, 77%, 56%)
CMYKcmyk(71.8%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.91, 38.93, -58.60)
CIE-LCHlch(21.91, 70.35, 303.60°)
OKLaboklab(34.37% 0.0162 -0.1694)
OKLCHoklch(34.37% 0.17 275.5)
XYZxyz(6.2998, 3.4912, 25.9278)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218E #878E21
analogous
#21518E #28218E #5F218E
triadic
#28218E #8E2821 #218E28
tetradic
#28218E #8E2151 #878E21 #218E5F
square
#28218E #8E2151 #878E21 #218E5F
split-complementary
#28218E #8E5F21 #518E21
monochromatic
#0C0A2B #1A155C #28218E #362DC0 #5B52D7

Accessibility & contrast

On white

12.36
#28218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#28218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28218E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218E#FFFFFF#000000##FFFFFF
##28218E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28218e;
/* rgb */ color: rgb(40, 33, 142);
/* oklch */ color: oklch(34.4% 0.170 275.5);
Tailwind
colors: {
  custom: {
    50: '#725eb0',
    500: '#28218e',
    950: '#000000',
  },
}
SCSS
$custom: #28218e;
$custom-light: #725eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28218e",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 243.853,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.17019,
    "h": 275.5
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#28218E
secondary
#B4BA50
accent
#E542DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28218E

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

Preview Lab → · Contrast checker → · Palette generator →

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