#28218F#28218F

#28218F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.171 H 275.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#28218F
RGBrgb(40, 33, 143)
HSLhsl(244, 63%, 35%)
HSVhsv(244, 77%, 56%)
CMYKcmyk(72%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.02, 39.27, -59.04)
CIE-LCHlch(22.02, 70.91, 303.63°)
OKLaboklab(34.48% 0.016 -0.1707)
OKLCHoklch(34.48% 0.171 275.4)
XYZxyz(6.3752, 3.5214, 26.3250)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28218F #888F21
analogous
#21518F #28218F #5F218F
triadic
#28218F #8F2821 #218F28
tetradic
#28218F #8F2151 #888F21 #218F5F
square
#28218F #8F2151 #888F21 #218F5F
split-complementary
#28218F #8F5F21 #518F21
monochromatic
#0C0A2C #1A165D #28218F #362CC1 #5B53D7

Accessibility & contrast

On white

12.32
#28218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28218F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28218F#FFFFFF#000000##FFFFFF
##28218F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28218f;
/* rgb */ color: rgb(40, 33, 143);
/* oklch */ color: oklch(34.5% 0.171 275.4);
Tailwind
colors: {
  custom: {
    50: '#735eb1',
    500: '#28218f',
    950: '#000000',
  },
}
SCSS
$custom: #28218f;
$custom-light: #735eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28218f",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 243.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34475,
    "c": 0.17145,
    "h": 275.4
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#28218F
secondary
#B4BB51
accent
#E642DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28218F

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

Preview Lab → · Contrast checker → · Palette generator →

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