#28289E#28289E

#28289E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.183 H 272.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#28289E
RGBrgb(40, 40, 158)
HSLhsl(240, 60%, 39%)
HSVhsv(240, 75%, 62%)
CMYKcmyk(74.7%, 74.7%, 0%, 38%)
CIE-LABlab(25.07, 40.31, -63.25)
CIE-LCHlch(25.07, 75.00, 302.51°)
OKLaboklab(37.11% 0.0094 -0.183)
OKLCHoklch(37.11% 0.183 272.9)
XYZxyz(7.8034, 4.4365, 32.7862)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28289E #9E9E28
analogous
#28639E #28289E #63289E
triadic
#28289E #9E2828 #289E28
tetradic
#28289E #9E2863 #9E9E28 #289E63
square
#28289E #9E2863 #9E9E28 #289E63
split-complementary
#28289E #9E6328 #639E28
monochromatic
#0F0F3C #1C1C6D #28289E #3737CC #6868D9

Accessibility & contrast

On white

11.13
#28289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#28289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28289E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28289E#FFFFFF#000000##FFFFFF
##28289E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28289e;
/* rgb */ color: rgb(40, 40, 158);
/* oklch */ color: oklch(37.1% 0.183 272.9);
Tailwind
colors: {
  custom: {
    50: '#7663bc',
    500: '#28289e',
    950: '#000000',
  },
}
SCSS
$custom: #28289e;
$custom-light: #7663bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28289e",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.18326,
    "h": 272.9
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#28289E
secondary
#BFBF63
accent
#E345E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28289E

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

Preview Lab → · Contrast checker → · Palette generator →

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