#28278C#28278C

#28278C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.161 H 274.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#28278C
RGBrgb(40, 39, 140)
HSLhsl(241, 56%, 35%)
HSVhsv(241, 72%, 55%)
CMYKcmyk(71.4%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.98, 34.67, -55.59)
CIE-LCHlch(22.98, 65.52, 301.95°)
OKLaboklab(35.06% 0.0131 -0.1607)
OKLCHoklch(35.06% 0.161 274.6)
XYZxyz(6.3326, 3.7950, 25.2046)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28278C #8B8C27
analogous
#27588C #28278C #5A278C
triadic
#28278C #8C2827 #278C28
tetradic
#28278C #8C2758 #8B8C27 #278C5A
square
#28278C #8C2758 #8B8C27 #278C5A
split-complementary
#28278C #8C5A27 #588C27
monochromatic
#0D0C2C #1A1A5C #28278C #3634BC #5D5CD2

Accessibility & contrast

On white

11.94
#28278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#28278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28278C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28278C#FFFFFF#000000##FFFFFF
##28278C1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28278c;
/* rgb */ color: rgb(40, 39, 140);
/* oklch */ color: oklch(35.1% 0.161 274.6);
Tailwind
colors: {
  custom: {
    50: '#7162af',
    500: '#28278c',
    950: '#000000',
  },
}
SCSS
$custom: #28278c;
$custom-light: #7162af;
$custom-dark: #000000;
JSON
{
  "hex": "#28278c",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 240.594,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.16121,
    "h": 274.6
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#28278C
secondary
#B6B758
accent
#E048DE
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #28278C

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

Preview Lab → · Contrast checker → · Palette generator →

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