#28287A#28287A

#28287A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.136 H 276.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#28287A
RGBrgb(40, 40, 122)
HSLhsl(240, 51%, 32%)
HSVhsv(240, 67%, 48%)
CMYKcmyk(67.2%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.48, 27.59, -46.72)
CIE-LCHlch(21.48, 54.26, 300.56°)
OKLaboklab(33.45% 0.0146 -0.1347)
OKLCHoklch(33.45% 0.136 276.2)
XYZxyz(5.1456, 3.3734, 18.7886)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28287A #7A7A28
analogous
#28517A #28287A #51287A
triadic
#28287A #7A2828 #287A28
tetradic
#28287A #7A2851 #7A7A28 #287A51
square
#28287A #7A2851 #7A7A28 #287A51
split-complementary
#28287A #7A5128 #517A28
monochromatic
#0A0A1E #19194C #28287A #3737A8 #5555C7

Accessibility & contrast

On white

12.54
#28287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28287A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28287A#FFFFFF#000000##FFFFFF
##28287A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28287a;
/* rgb */ color: rgb(40, 40, 122);
/* oklch */ color: oklch(33.4% 0.136 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d62a1',
    500: '#28287a',
    950: '#000000',
  },
}
SCSS
$custom: #28287a;
$custom-light: #6d62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28287a",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.13552,
    "h": 276.2
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#28287A
secondary
#ACAC52
accent
#DA4EDA
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #28287A

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

Preview Lab → · Contrast checker → · Palette generator →

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