#28288E#28288E

#28288E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.163 H 274.3°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#28288E
RGBrgb(40, 40, 142)
HSLhsl(240, 56%, 36%)
HSVhsv(240, 72%, 56%)
CMYKcmyk(71.8%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.41, 34.76, -56.13)
CIE-LCHlch(23.41, 66.02, 301.77°)
OKLaboklab(35.43% 0.0121 -0.1623)
OKLCHoklch(35.43% 0.163 274.3)
XYZxyz(6.5147, 3.9211, 25.9995)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28288E #8E8E28
analogous
#285B8E #28288E #5B288E
triadic
#28288E #8E2828 #288E28
tetradic
#28288E #8E285B #8E8E28 #288E5B
square
#28288E #8E285B #8E8E28 #288E5B
split-complementary
#28288E #8E5B28 #5B8E28
monochromatic
#0D0D2F #1B1B5E #28288E #3535BE #5F5FD2

Accessibility & contrast

On white

11.77
#28288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#28288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28288E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28288E#FFFFFF#000000##FFFFFF
##28288E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28288e;
/* rgb */ color: rgb(40, 40, 142);
/* oklch */ color: oklch(35.4% 0.163 274.3);
Tailwind
colors: {
  custom: {
    50: '#7263b0',
    500: '#28288e',
    950: '#000000',
  },
}
SCSS
$custom: #28288e;
$custom-light: #7263b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28288e",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35432,
    "c": 0.16271,
    "h": 274.3
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#28288E
secondary
#B7B75B
accent
#DF48DF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28288E

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

Preview Lab → · Contrast checker → · Palette generator →

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