#28289A#28289A

#28289A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.178 H 273.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#28289A
RGBrgb(40, 40, 154)
HSLhsl(240, 59%, 38%)
HSVhsv(240, 74%, 60%)
CMYKcmyk(74%, 74%, 0%, 39.6%)
CIE-LABlab(24.64, 38.94, -61.50)
CIE-LCHlch(24.64, 72.79, 302.34°)
OKLaboklab(36.69% 0.0101 -0.1779)
OKLCHoklch(36.69% 0.178 273.3)
XYZxyz(7.4646, 4.3010, 31.0024)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28289A #9A9A28
analogous
#28619A #28289A #61289A
triadic
#28289A #9A2828 #289A28
tetradic
#28289A #9A2861 #9A9A28 #289A61
square
#28289A #9A2861 #9A9A28 #289A61
split-complementary
#28289A #9A6128 #619A28
monochromatic
#0F0F39 #1B1B69 #28289A #3535CA #6565D7

Accessibility & contrast

On white

11.29
#28289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#28289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28289A
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28289A#FFFFFF#000000##FFFFFF
##28289A1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28289a;
/* rgb */ color: rgb(40, 40, 154);
/* oklch */ color: oklch(36.7% 0.178 273.3);
Tailwind
colors: {
  custom: {
    50: '#7563b9',
    500: '#28289a',
    950: '#000000',
  },
}
SCSS
$custom: #28289a;
$custom-light: #7563b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28289a",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 240,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36685,
    "c": 0.17821,
    "h": 273.3
  },
  "luminance": 0.04302
}

Semantic roles & 50–950 ramp

primary
#28289A
secondary
#BDBD61
accent
#E246E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28289A

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

Preview Lab → · Contrast checker → · Palette generator →

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