#28219C#28219C

#28219C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.188 H 274.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#28219C
RGBrgb(40, 33, 156)
HSLhsl(243, 65%, 37%)
HSVhsv(243, 79%, 61%)
CMYKcmyk(74.4%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.47, 43.56, -64.67)
CIE-LCHlch(23.47, 77.97, 303.96°)
OKLaboklab(35.92% 0.013 -0.1871)
OKLCHoklch(35.92% 0.188 274)
XYZxyz(7.4177, 3.9384, 31.8153)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219C #959C21
analogous
#21579C #28219C #66219C
triadic
#28219C #9C2821 #219C28
tetradic
#28219C #9C2157 #959C21 #219C66
square
#28219C #9C2157 #959C21 #219C66
split-complementary
#28219C #9C6621 #579C21
monochromatic
#0E0C37 #1B1669 #28219C #352CCF #625BDC

Accessibility & contrast

On white

11.75
#28219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28219C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219C#FFFFFF#000000##FFFFFF
##28219C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28219c;
/* rgb */ color: rgb(40, 33, 156);
/* oklch */ color: oklch(35.9% 0.188 274.0);
Tailwind
colors: {
  custom: {
    50: '#765fba',
    500: '#28219c',
    950: '#000000',
  },
}
SCSS
$custom: #28219c;
$custom-light: #765fba;
$custom-dark: #000000;
JSON
{
  "hex": "#28219c",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 243.415,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.18752,
    "h": 274
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28219C

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

Preview Lab → · Contrast checker → · Palette generator →

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