#28289C#28289C

#28289C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.181 H 273.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#28289C
RGBrgb(40, 40, 156)
HSLhsl(240, 59%, 38%)
HSVhsv(240, 74%, 61%)
CMYKcmyk(74.4%, 74.4%, 0%, 38.8%)
CIE-LABlab(24.85, 39.62, -62.38)
CIE-LCHlch(24.85, 73.90, 302.42°)
OKLaboklab(36.9% 0.0098 -0.1805)
OKLCHoklch(36.9% 0.181 273.1)
XYZxyz(7.6326, 4.3682, 31.8869)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28289C #9C9C28
analogous
#28629C #28289C #62289C
triadic
#28289C #9C2828 #289C28
tetradic
#28289C #9C2862 #9C9C28 #289C62
square
#28289C #9C2862 #9C9C28 #289C62
split-complementary
#28289C #9C6228 #629C28
monochromatic
#0F0F3B #1C1C6B #28289C #3636CB #6767D8

Accessibility & contrast

On white

11.21
#28289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#28289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28289C
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28289C#FFFFFF#000000##FFFFFF
##28289C1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28289c;
/* rgb */ color: rgb(40, 40, 156);
/* oklch */ color: oklch(36.9% 0.181 273.1);
Tailwind
colors: {
  custom: {
    50: '#7563ba',
    500: '#28289c',
    950: '#000000',
  },
}
SCSS
$custom: #28289c;
$custom-light: #7563ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28289c",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.18075,
    "h": 273.1
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#28289C
secondary
#BEBE62
accent
#E245E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28289C

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

Preview Lab → · Contrast checker → · Palette generator →

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