#28219D#28219D

#28219D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.189 H 273.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#28219D
RGBrgb(40, 33, 157)
HSLhsl(243, 65%, 37%)
HSVhsv(243, 79%, 62%)
CMYKcmyk(74.5%, 79%, 0%, 38.4%)
CIE-LABlab(23.58, 43.88, -65.09)
CIE-LCHlch(23.58, 78.50, 303.98°)
OKLaboklab(36.03% 0.0128 -0.1883)
OKLCHoklch(36.03% 0.189 273.9)
XYZxyz(7.5027, 3.9724, 32.2631)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219D #969D21
analogous
#21589D #28219D #66219D
triadic
#28219D #9D2821 #219D28
tetradic
#28219D #9D2158 #969D21 #219D66
square
#28219D #9D2158 #969D21 #219D66
split-complementary
#28219D #9D6621 #589D21
monochromatic
#0E0C38 #1B166A #28219D #352CD0 #635CDD

Accessibility & contrast

On white

11.70
#28219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28219D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219D#FFFFFF#000000##FFFFFF
##28219D1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28219d;
/* rgb */ color: rgb(40, 33, 157);
/* oklch */ color: oklch(36.0% 0.189 273.9);
Tailwind
colors: {
  custom: {
    50: '#765fbb',
    500: '#28219d',
    950: '#000000',
  },
}
SCSS
$custom: #28219d;
$custom-light: #765fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#28219d",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 243.387,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36031,
    "c": 0.18875,
    "h": 273.9
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#28219D
secondary
#BBC159
accent
#E840DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28219D

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

Preview Lab → · Contrast checker → · Palette generator →

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