#28288B#28288B

#28288B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.159 H 274.5°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#28288B
RGBrgb(40, 40, 139)
HSLhsl(240, 55%, 35%)
HSVhsv(240, 71%, 55%)
CMYKcmyk(71.2%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.11, 33.70, -54.76)
CIE-LCHlch(23.11, 64.30, 301.61°)
OKLaboklab(35.13% 0.0126 -0.1582)
OKLCHoklch(35.13% 0.159 274.5)
XYZxyz(6.2925, 3.8322, 24.8292)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28288B #8B8B28
analogous
#28598B #28288B #59288B
triadic
#28288B #8B2828 #288B28
tetradic
#28288B #8B2859 #8B8B28 #288B59
square
#28288B #8B2859 #8B8B28 #288B59
split-complementary
#28288B #8B5928 #598B28
monochromatic
#0D0D2C #1A1A5B #28288B #3636BB #5D5DD0

Accessibility & contrast

On white

11.89
#28288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28288B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28288B#FFFFFF#000000##FFFFFF
##28288B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28288b;
/* rgb */ color: rgb(40, 40, 139);
/* oklch */ color: oklch(35.1% 0.159 274.5);
Tailwind
colors: {
  custom: {
    50: '#7163ae',
    500: '#28288b',
    950: '#000000',
  },
}
SCSS
$custom: #28288b;
$custom-light: #7163ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28288b",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.15875,
    "h": 274.5
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#28288B
secondary
#B6B659
accent
#DF49DF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28288B

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

Preview Lab → · Contrast checker → · Palette generator →

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