#28288F#28288F

#28288F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.164 H 274.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#28288F
RGBrgb(40, 40, 143)
HSLhsl(240, 56%, 36%)
HSVhsv(240, 72%, 56%)
CMYKcmyk(72%, 72%, 0%, 43.9%)
CIE-LABlab(23.51, 35.11, -56.59)
CIE-LCHlch(23.51, 66.60, 301.82°)
OKLaboklab(35.53% 0.012 -0.1636)
OKLCHoklch(35.53% 0.164 274.2)
XYZxyz(6.5901, 3.9512, 26.3966)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28288F #8F8F28
analogous
#285B8F #28288F #5B288F
triadic
#28288F #8F2828 #288F28
tetradic
#28288F #8F285B #8F8F28 #288F5B
square
#28288F #8F285B #8F8F28 #288F5B
split-complementary
#28288F #8F5B28 #5B8F28
monochromatic
#0D0D2F #1B1B5F #28288F #3535BF #5F5FD2

Accessibility & contrast

On white

11.73
#28288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28288F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28288F#FFFFFF#000000##FFFFFF
##28288F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28288f;
/* rgb */ color: rgb(40, 40, 143);
/* oklch */ color: oklch(35.5% 0.164 274.2);
Tailwind
colors: {
  custom: {
    50: '#7263b1',
    500: '#28288f',
    950: '#000000',
  },
}
SCSS
$custom: #28288f;
$custom-light: #7263b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28288f",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35535,
    "c": 0.16403,
    "h": 274.2
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#28288F
secondary
#B8B85B
accent
#E048E0
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28288F

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

Preview Lab → · Contrast checker → · Palette generator →

#28288F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva