#28219F#28219F

#28219F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.191 H 273.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#28219F
RGBrgb(40, 33, 159)
HSLhsl(243, 66%, 38%)
HSVhsv(243, 79%, 62%)
CMYKcmyk(74.8%, 79.2%, 0%, 37.6%)
CIE-LABlab(23.81, 44.53, -65.94)
CIE-LCHlch(23.81, 79.57, 304.03°)
OKLaboklab(36.26% 0.0123 -0.1908)
OKLCHoklch(36.26% 0.191 273.7)
XYZxyz(7.6749, 4.0412, 33.1697)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219F #989F21
analogous
#21599F #28219F #67219F
triadic
#28219F #9F2821 #219F28
tetradic
#28219F #9F2159 #989F21 #219F67
square
#28219F #9F2159 #989F21 #219F67
split-complementary
#28219F #9F6721 #599F21
monochromatic
#0E0C3A #1B166C #28219F #352CD2 #645DDD

Accessibility & contrast

On white

11.61
#28219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#28219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28219F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219F#FFFFFF#000000##FFFFFF
##28219F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28219f;
/* rgb */ color: rgb(40, 33, 159);
/* oklch */ color: oklch(36.3% 0.191 273.7);
Tailwind
colors: {
  custom: {
    50: '#765fbd',
    500: '#28219f',
    950: '#000000',
  },
}
SCSS
$custom: #28219f;
$custom-light: #765fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#28219f",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 243.333,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36257,
    "c": 0.19116,
    "h": 273.7
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#28219F
secondary
#BCC25A
accent
#E93FDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28219F

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

Preview Lab → · Contrast checker → · Palette generator →

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