#28228D#28228D

#28228D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.168 H 275.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#28228D
RGBrgb(40, 34, 141)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(71.6%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.01, 38.02, -57.82)
CIE-LCHlch(22.01, 69.20, 303.33°)
OKLaboklab(34.4% 0.0159 -0.1671)
OKLCHoklch(34.4% 0.168 275.4)
XYZxyz(6.2532, 3.5177, 25.5436)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28228D #878D22
analogous
#22528D #28228D #5D228D
triadic
#28228D #8D2822 #228D28
tetradic
#28228D #8D2252 #878D22 #228D5D
square
#28228D #8D2252 #878D22 #228D5D
split-complementary
#28228D #8D5D22 #528D22
monochromatic
#0C0A2A #1A165C #28228D #362EBE #5B54D6

Accessibility & contrast

On white

12.33
#28228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#28228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28228D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28228D#FFFFFF#000000##FFFFFF
##28228D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28228d;
/* rgb */ color: rgb(40, 34, 141);
/* oklch */ color: oklch(34.4% 0.168 275.4);
Tailwind
colors: {
  custom: {
    50: '#725faf',
    500: '#28228d',
    950: '#000000',
  },
}
SCSS
$custom: #28228d;
$custom-light: #725faf;
$custom-dark: #000000;
JSON
{
  "hex": "#28228d",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 243.364,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.1679,
    "h": 275.4
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#28228D
secondary
#B4B951
accent
#E444DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28228D

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

Preview Lab → · Contrast checker → · Palette generator →

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