#28287F#28287F

#28287F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.142 H 275.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#28287F
RGBrgb(40, 40, 127)
HSLhsl(240, 52%, 33%)
HSVhsv(240, 69%, 50%)
CMYKcmyk(68.5%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.95, 29.40, -49.13)
CIE-LCHlch(21.95, 57.26, 300.90°)
OKLaboklab(33.93% 0.0141 -0.1418)
OKLCHoklch(33.93% 0.142 275.7)
XYZxyz(5.4634, 3.5005, 20.4623)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28287F #7F7F28
analogous
#28537F #28287F #53287F
triadic
#28287F #7F2828 #287F28
tetradic
#28287F #7F2853 #7F7F28 #287F53
square
#28287F #7F2853 #7F7F28 #287F53
split-complementary
#28287F #7F5328 #537F28
monochromatic
#0B0B22 #191950 #28287F #3737AE #5757CA

Accessibility & contrast

On white

12.35
#28287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#28287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28287F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28287F#FFFFFF#000000##FFFFFF
##28287F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28287f;
/* rgb */ color: rgb(40, 40, 127);
/* oklch */ color: oklch(33.9% 0.142 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e62a5',
    500: '#28287f',
    950: '#000000',
  },
}
SCSS
$custom: #28287f;
$custom-light: #6e62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28287f",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.14249,
    "h": 275.7
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#28287F
secondary
#AFAF54
accent
#DC4CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28287F

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

Preview Lab → · Contrast checker → · Palette generator →

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