#28229A#28229A

#28229A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.184 H 274.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#28229A
RGBrgb(40, 34, 154)
HSLhsl(243, 64%, 37%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(74%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.43, 42.36, -63.50)
CIE-LCHlch(23.43, 76.34, 303.71°)
OKLaboklab(35.83% 0.0131 -0.1837)
OKLCHoklch(35.83% 0.184 274.1)
XYZxyz(7.2779, 3.9275, 30.9401)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28229A #949A22
analogous
#22589A #28229A #64229A
triadic
#28229A #9A2822 #229A28
tetradic
#28229A #9A2258 #949A22 #229A64
square
#28229A #9A2258 #949A22 #229A64
split-complementary
#28229A #9A6422 #589A22
monochromatic
#0E0C36 #1B1768 #28229A #352DCC #625BDB

Accessibility & contrast

On white

11.76
#28229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28229A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28229A#FFFFFF#000000##FFFFFF
##28229A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28229a;
/* rgb */ color: rgb(40, 34, 154);
/* oklch */ color: oklch(35.8% 0.184 274.1);
Tailwind
colors: {
  custom: {
    50: '#755fb9',
    500: '#28229a',
    950: '#000000',
  },
}
SCSS
$custom: #28229a;
$custom-light: #755fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#28229a",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 243,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35827,
    "c": 0.18416,
    "h": 274.1
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#28229A
secondary
#BABF58
accent
#E741DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28229A

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

Preview Lab → · Contrast checker → · Palette generator →

#28229A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva