#28289F#28289F

#28289F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.185 H 272.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#28289F
RGBrgb(40, 40, 159)
HSLhsl(240, 60%, 39%)
HSVhsv(240, 75%, 62%)
CMYKcmyk(74.8%, 74.8%, 0%, 37.6%)
CIE-LABlab(25.17, 40.65, -63.68)
CIE-LCHlch(25.17, 75.55, 302.55°)
OKLaboklab(37.22% 0.0093 -0.1843)
OKLCHoklch(37.22% 0.185 272.9)
XYZxyz(7.8898, 4.4711, 33.2414)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28289F #9F9F28
analogous
#28649F #28289F #64289F
triadic
#28289F #9F2828 #289F28
tetradic
#28289F #9F2864 #9F9F28 #289F64
square
#28289F #9F2864 #9F9F28 #289F64
split-complementary
#28289F #9F6428 #649F28
monochromatic
#0F0F3D #1C1C6E #28289F #3737CD #6868D9

Accessibility & contrast

On white

11.09
#28289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28289F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28289F#FFFFFF#000000##FFFFFF
##28289F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28289f;
/* rgb */ color: rgb(40, 40, 159);
/* oklch */ color: oklch(37.2% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#7663bd',
    500: '#28289f',
    950: '#000000',
  },
}
SCSS
$custom: #28289f;
$custom-light: #7663bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28289f",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.18451,
    "h": 272.9
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28289F

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

Preview Lab → · Contrast checker → · Palette generator →

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