#28219B#28219B

#28219B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.186 H 274.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#28219B
RGBrgb(40, 33, 155)
HSLhsl(243, 65%, 37%)
HSVhsv(243, 79%, 61%)
CMYKcmyk(74.2%, 78.7%, 0%, 39.2%)
CIE-LABlab(23.35, 43.23, -64.24)
CIE-LCHlch(23.35, 77.44, 303.94°)
OKLaboklab(35.81% 0.0133 -0.1858)
OKLCHoklch(35.81% 0.186 274.1)
XYZxyz(7.3334, 3.9046, 31.3712)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219B #949B21
analogous
#21579B #28219B #65219B
triadic
#28219B #9B2821 #219B28
tetradic
#28219B #9B2157 #949B21 #219B65
square
#28219B #9B2157 #949B21 #219B65
split-complementary
#28219B #9B6521 #579B21
monochromatic
#0E0C36 #1B1669 #28219B #352CCD #625ADC

Accessibility & contrast

On white

11.79
#28219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#28219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28219B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219B#FFFFFF#000000##FFFFFF
##28219B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28219b;
/* rgb */ color: rgb(40, 33, 155);
/* oklch */ color: oklch(35.8% 0.186 274.1);
Tailwind
colors: {
  custom: {
    50: '#755fba',
    500: '#28219b',
    950: '#000000',
  },
}
SCSS
$custom: #28219b;
$custom-light: #755fba;
$custom-dark: #000000;
JSON
{
  "hex": "#28219b",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 243.443,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35806,
    "c": 0.18631,
    "h": 274.1
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28219B

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

Preview Lab → · Contrast checker → · Palette generator →

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