#28288C#28288C

#28288C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.160 H 274.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#28288C
RGBrgb(40, 40, 140)
HSLhsl(240, 56%, 35%)
HSVhsv(240, 71%, 55%)
CMYKcmyk(71.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.21, 34.05, -55.22)
CIE-LCHlch(23.21, 64.87, 301.66°)
OKLaboklab(35.23% 0.0124 -0.1596)
OKLCHoklch(35.23% 0.16 274.4)
XYZxyz(6.3659, 3.8615, 25.2157)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28288C #8C8C28
analogous
#285A8C #28288C #5A288C
triadic
#28288C #8C2828 #288C28
tetradic
#28288C #8C285A #8C8C28 #288C5A
square
#28288C #8C285A #8C8C28 #288C5A
split-complementary
#28288C #8C5A28 #5A8C28
monochromatic
#0D0D2D #1A1A5C #28288C #3636BC #5E5ED1

Accessibility & contrast

On white

11.85
#28288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#28288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28288C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28288C#FFFFFF#000000##FFFFFF
##28288C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28288c;
/* rgb */ color: rgb(40, 40, 140);
/* oklch */ color: oklch(35.2% 0.160 274.4);
Tailwind
colors: {
  custom: {
    50: '#7163af',
    500: '#28288c',
    950: '#000000',
  },
}
SCSS
$custom: #28288c;
$custom-light: #7163af;
$custom-dark: #000000;
JSON
{
  "hex": "#28288c",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.16007,
    "h": 274.4
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#28288C
secondary
#B6B65A
accent
#DF49DF
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #28288C

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

Preview Lab → · Contrast checker → · Palette generator →

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