#28287E#28287E

#28287E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.141 H 275.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#28287E
RGBrgb(40, 40, 126)
HSLhsl(240, 52%, 33%)
HSVhsv(240, 68%, 49%)
CMYKcmyk(68.3%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.85, 29.04, -48.66)
CIE-LCHlch(21.85, 56.66, 300.83°)
OKLaboklab(33.83% 0.0142 -0.1404)
OKLCHoklch(33.83% 0.141 275.8)
XYZxyz(5.3985, 3.4746, 20.1208)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28287E #7E7E28
analogous
#28537E #28287E #53287E
triadic
#28287E #7E2828 #287E28
tetradic
#28287E #7E2853 #7E7E28 #287E53
square
#28287E #7E2853 #7E7E28 #287E53
split-complementary
#28287E #7E5328 #537E28
monochromatic
#0B0B21 #191950 #28287E #3737AC #5757CA

Accessibility & contrast

On white

12.39
#28287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28287E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28287E#FFFFFF#000000##FFFFFF
##28287E1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28287e;
/* rgb */ color: rgb(40, 40, 126);
/* oklch */ color: oklch(33.8% 0.141 275.8);
Tailwind
colors: {
  custom: {
    50: '#6e62a4',
    500: '#28287e',
    950: '#000000',
  },
}
SCSS
$custom: #28287e;
$custom-light: #6e62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28287e",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33833,
    "c": 0.14111,
    "h": 275.8
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#28287E
secondary
#AFAF53
accent
#DB4DDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28287E

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

Preview Lab → · Contrast checker → · Palette generator →

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