#28219E#28219E

#28219E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.190 H 273.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#28219E
RGBrgb(40, 33, 158)
HSLhsl(243, 65%, 37%)
HSVhsv(243, 79%, 62%)
CMYKcmyk(74.7%, 79.1%, 0%, 38%)
CIE-LABlab(23.69, 44.21, -65.52)
CIE-LCHlch(23.69, 79.04, 304.01°)
OKLaboklab(36.14% 0.0126 -0.1895)
OKLCHoklch(36.14% 0.19 273.8)
XYZxyz(7.5884, 4.0067, 32.7146)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28219E #979E21
analogous
#21599E #28219E #67219E
triadic
#28219E #9E2821 #219E28
tetradic
#28219E #9E2159 #979E21 #219E67
square
#28219E #9E2159 #979E21 #219E67
split-complementary
#28219E #9E6721 #599E21
monochromatic
#0E0C39 #1B166B #28219E #352CD1 #645CDD

Accessibility & contrast

On white

11.66
#28219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#28219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28219E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28219E#FFFFFF#000000##FFFFFF
##28219E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28219e;
/* rgb */ color: rgb(40, 33, 158);
/* oklch */ color: oklch(36.1% 0.190 273.8);
Tailwind
colors: {
  custom: {
    50: '#765fbc',
    500: '#28219e',
    950: '#000000',
  },
}
SCSS
$custom: #28219e;
$custom-light: #765fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#28219e",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 243.36,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36144,
    "c": 0.18996,
    "h": 273.8
  },
  "luminance": 0.04007
}

Semantic roles & 50–950 ramp

primary
#28219E
secondary
#BCC159
accent
#E83FDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28219E

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

Preview Lab → · Contrast checker → · Palette generator →

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