#28219A#28219A

#28219A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.185 H 274.2°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#28219A
RGBrgb(40, 33, 154)
HSLhsl(243, 65%, 37%)
HSVhsv(243, 79%, 60%)
CMYKcmyk(74%, 78.6%, 0%, 39.6%)
CIE-LABlab(23.24, 42.90, -63.82)
CIE-LCHlch(23.24, 76.90, 303.91°)
OKLaboklab(35.69% 0.0135 -0.1846)
OKLCHoklch(35.69% 0.185 274.2)
XYZxyz(7.2497, 3.8712, 30.9307)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219A #939A21
analogous
#21579A #28219A #65219A
triadic
#28219A #9A2821 #219A28
tetradic
#28219A #9A2157 #939A21 #219A65
square
#28219A #9A2157 #939A21 #219A65
split-complementary
#28219A #9A6521 #579A21
monochromatic
#0E0B35 #1B1668 #28219A #352CCC #615ADC

Accessibility & contrast

On white

11.83
#28219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#28219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28219A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219A#FFFFFF#000000##FFFFFF
##28219A1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28219a;
/* rgb */ color: rgb(40, 33, 154);
/* oklch */ color: oklch(35.7% 0.185 274.2);
Tailwind
colors: {
  custom: {
    50: '#755fb9',
    500: '#28219a',
    950: '#000000',
  },
}
SCSS
$custom: #28219a;
$custom-light: #755fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#28219a",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 243.471,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35694,
    "c": 0.18509,
    "h": 274.2
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#28219A
secondary
#BAC057
accent
#E840DE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28219A

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

Preview Lab → · Contrast checker → · Palette generator →

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