#28228C#28228C

#28228C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.167 H 275.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#28228C
RGBrgb(40, 34, 140)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(71.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.90, 37.68, -57.37)
CIE-LCHlch(21.90, 68.64, 303.30°)
OKLaboklab(34.29% 0.0161 -0.1658)
OKLCHoklch(34.29% 0.167 275.5)
XYZxyz(6.1792, 3.4880, 25.1535)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28228C #868C22
analogous
#22518C #28228C #5D228C
triadic
#28228C #8C2822 #228C28
tetradic
#28228C #8C2251 #868C22 #228C5D
square
#28228C #8C2251 #868C22 #228C5D
split-complementary
#28228C #8C5D22 #518C22
monochromatic
#0C0A2A #1A165B #28228C #362EBD #5B53D5

Accessibility & contrast

On white

12.37
#28228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28228C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28228C#FFFFFF#000000##FFFFFF
##28228C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28228c;
/* rgb */ color: rgb(40, 34, 140);
/* oklch */ color: oklch(34.3% 0.167 275.5);
Tailwind
colors: {
  custom: {
    50: '#725faf',
    500: '#28228c',
    950: '#000000',
  },
}
SCSS
$custom: #28228c;
$custom-light: #725faf;
$custom-dark: #000000;
JSON
{
  "hex": "#28228c",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 243.396,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34294,
    "c": 0.16663,
    "h": 275.5
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#28228C
secondary
#B3B951
accent
#E444DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #28228C

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

Preview Lab → · Contrast checker → · Palette generator →

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