#28287D#28287D

#28287D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.140 H 275.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#28287D
RGBrgb(40, 40, 125)
HSLhsl(240, 52%, 32%)
HSVhsv(240, 68%, 49%)
CMYKcmyk(68%, 68%, 0%, 51%)
CIE-LABlab(21.76, 28.68, -48.17)
CIE-LCHlch(21.76, 56.07, 300.77°)
OKLaboklab(33.74% 0.0143 -0.139)
OKLCHoklch(33.74% 0.14 275.9)
XYZxyz(5.3343, 3.4489, 19.7827)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28287D #7D7D28
analogous
#28537D #28287D #53287D
triadic
#28287D #7D2828 #287D28
tetradic
#28287D #7D2853 #7D7D28 #287D53
square
#28287D #7D2853 #7D7D28 #287D53
split-complementary
#28287D #7D5328 #537D28
monochromatic
#0A0A20 #19194F #28287D #3737AB #5656C9

Accessibility & contrast

On white

12.43
#28287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28287D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28287D#FFFFFF#000000##FFFFFF
##28287D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28287d;
/* rgb */ color: rgb(40, 40, 125);
/* oklch */ color: oklch(33.7% 0.140 275.9);
Tailwind
colors: {
  custom: {
    50: '#6e62a3',
    500: '#28287d',
    950: '#000000',
  },
}
SCSS
$custom: #28287d;
$custom-light: #6e62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28287d",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33736,
    "c": 0.13972,
    "h": 275.9
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#28287D
secondary
#AEAE53
accent
#DB4DDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28287D

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

Preview Lab → · Contrast checker → · Palette generator →

#28287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva