#28218D#28218D

#28218D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.169 H 275.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#28218D
RGBrgb(40, 33, 141)
HSLhsl(244, 62%, 34%)
HSVhsv(244, 77%, 55%)
CMYKcmyk(71.6%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.80, 38.60, -58.16)
CIE-LCHlch(21.80, 69.80, 303.57°)
OKLaboklab(34.26% 0.0164 -0.1681)
OKLCHoklch(34.26% 0.169 275.6)
XYZxyz(6.2251, 3.4613, 25.5342)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218D #868D21
analogous
#21508D #28218D #5E218D
triadic
#28218D #8D2821 #218D28
tetradic
#28218D #8D2150 #868D21 #218D5E
square
#28218D #8D2150 #868D21 #218D5E
split-complementary
#28218D #8D5E21 #508D21
monochromatic
#0C0A2A #1A155B #28218D #362DBF #5B52D6

Accessibility & contrast

On white

12.41
#28218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28218D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218D#FFFFFF#000000##FFFFFF
##28218D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28218d;
/* rgb */ color: rgb(40, 33, 141);
/* oklch */ color: oklch(34.3% 0.169 275.6);
Tailwind
colors: {
  custom: {
    50: '#725eaf',
    500: '#28218d',
    950: '#000000',
  },
}
SCSS
$custom: #28218d;
$custom-light: #725eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#28218d",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 243.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.16893,
    "h": 275.6
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#28218D
secondary
#B3BA50
accent
#E543DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28218D

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

Preview Lab → · Contrast checker → · Palette generator →

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