#28228B#28228B

#28228B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.165 H 275.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#28228B
RGBrgb(40, 34, 139)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(71.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.79, 37.34, -56.92)
CIE-LCHlch(21.79, 68.08, 303.27°)
OKLaboklab(34.19% 0.0163 -0.1645)
OKLCHoklch(34.19% 0.165 275.7)
XYZxyz(6.1058, 3.4587, 24.7669)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28228B #858B22
analogous
#22518B #28228B #5D228B
triadic
#28228B #8B2822 #228B28
tetradic
#28228B #8B2251 #858B22 #228B5D
square
#28228B #8B2251 #858B22 #228B5D
split-complementary
#28228B #8B5D22 #518B22
monochromatic
#0C0A29 #1A165A #28228B #362EBC #5A53D5

Accessibility & contrast

On white

12.41
#28228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28228B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28228B#FFFFFF#000000##FFFFFF
##28228B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28228b;
/* rgb */ color: rgb(40, 34, 139);
/* oklch */ color: oklch(34.2% 0.165 275.7);
Tailwind
colors: {
  custom: {
    50: '#725fae',
    500: '#28228b',
    950: '#000000',
  },
}
SCSS
$custom: #28228b;
$custom-light: #725fae;
$custom-dark: #000000;
JSON
{
  "hex": "#28228b",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 243.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.16536,
    "h": 275.7
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#28228B
secondary
#B3B850
accent
#E444DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28228B

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

Preview Lab → · Contrast checker → · Palette generator →

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