#28278E#28278E

#28278E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.164 H 274.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#28278E
RGBrgb(40, 39, 142)
HSLhsl(241, 57%, 35%)
HSVhsv(241, 73%, 56%)
CMYKcmyk(71.8%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.18, 35.38, -56.50)
CIE-LCHlch(23.18, 66.66, 302.05°)
OKLaboklab(35.27% 0.0127 -0.1633)
OKLCHoklch(35.27% 0.164 274.5)
XYZxyz(6.4815, 3.8545, 25.9884)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28278E #8D8E27
analogous
#27598E #28278E #5C278E
triadic
#28278E #8E2827 #278E28
tetradic
#28278E #8E2759 #8D8E27 #278E5C
square
#28278E #8E2759 #8D8E27 #278E5C
split-complementary
#28278E #8E5C27 #598E27
monochromatic
#0D0D2E #1A1A5E #28278E #3634BE #5E5DD2

Accessibility & contrast

On white

11.86
#28278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#28278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28278E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28278E#FFFFFF#000000##FFFFFF
##28278E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28278e;
/* rgb */ color: rgb(40, 39, 142);
/* oklch */ color: oklch(35.3% 0.164 274.5);
Tailwind
colors: {
  custom: {
    50: '#7262b0',
    500: '#28278e',
    950: '#000000',
  },
}
SCSS
$custom: #28278e;
$custom-light: #7262b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28278e",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 240.583,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.16384,
    "h": 274.5
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#28278E
secondary
#B7B859
accent
#E048DF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28278E

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

Preview Lab → · Contrast checker → · Palette generator →

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