#28289B#28289B

#28289B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.179 H 273.2°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#28289B
RGBrgb(40, 40, 155)
HSLhsl(240, 59%, 38%)
HSVhsv(240, 74%, 61%)
CMYKcmyk(74.2%, 74.2%, 0%, 39.2%)
CIE-LABlab(24.75, 39.28, -61.94)
CIE-LCHlch(24.75, 73.35, 302.38°)
OKLaboklab(36.79% 0.01 -0.1792)
OKLCHoklch(36.79% 0.179 273.2)
XYZxyz(7.5483, 4.3345, 31.4428)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28289B #9B9B28
analogous
#28619B #28289B #61289B
triadic
#28289B #9B2828 #289B28
tetradic
#28289B #9B2861 #9B9B28 #289B61
square
#28289B #9B2861 #9B9B28 #289B61
split-complementary
#28289B #9B6128 #619B28
monochromatic
#0F0F3A #1B1B6A #28289B #3535CB #6666D7

Accessibility & contrast

On white

11.25
#28289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#28289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28289B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28289B#FFFFFF#000000##FFFFFF
##28289B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28289b;
/* rgb */ color: rgb(40, 40, 155);
/* oklch */ color: oklch(36.8% 0.179 273.2);
Tailwind
colors: {
  custom: {
    50: '#7563ba',
    500: '#28289b',
    950: '#000000',
  },
}
SCSS
$custom: #28289b;
$custom-light: #7563ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28289b",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36792,
    "c": 0.17948,
    "h": 273.2
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28289B

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

Preview Lab → · Contrast checker → · Palette generator →

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