#28228E#28228E

#28228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.169 H 275.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#28228E
RGBrgb(40, 34, 142)
HSLhsl(243, 61%, 35%)
HSVhsv(243, 76%, 56%)
CMYKcmyk(71.8%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.12, 38.36, -58.26)
CIE-LCHlch(22.12, 69.76, 303.36°)
OKLaboklab(34.51% 0.0157 -0.1684)
OKLCHoklch(34.51% 0.169 275.3)
XYZxyz(6.3280, 3.5476, 25.9372)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28228E #888E22
analogous
#22528E #28228E #5E228E
triadic
#28228E #8E2822 #228E28
tetradic
#28228E #8E2252 #888E22 #228E5E
square
#28228E #8E2252 #888E22 #228E5E
split-complementary
#28228E #8E5E22 #528E22
monochromatic
#0C0A2B #1A165D #28228E #362EBF #5B54D6

Accessibility & contrast

On white

12.28
#28228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#28228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28228E
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28228E#FFFFFF#000000##FFFFFF
##28228E1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28228e;
/* rgb */ color: rgb(40, 34, 142);
/* oklch */ color: oklch(34.5% 0.169 275.3);
Tailwind
colors: {
  custom: {
    50: '#725fb0',
    500: '#28228e',
    950: '#000000',
  },
}
SCSS
$custom: #28228e;
$custom-light: #725fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28228e",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 243.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.16918,
    "h": 275.3
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#28228E
secondary
#B4BA52
accent
#E443DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28228E

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

Preview Lab → · Contrast checker → · Palette generator →

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