#28278F#28278F

#28278F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.165 H 274.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#28278F
RGBrgb(40, 39, 143)
HSLhsl(241, 57%, 36%)
HSVhsv(241, 73%, 56%)
CMYKcmyk(72%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.29, 35.73, -56.95)
CIE-LCHlch(23.29, 67.23, 302.10°)
OKLaboklab(35.38% 0.0126 -0.1647)
OKLCHoklch(35.38% 0.165 274.4)
XYZxyz(6.5569, 3.8847, 26.3855)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28278F #8E8F27
analogous
#275A8F #28278F #5C278F
triadic
#28278F #8F2827 #278F28
tetradic
#28278F #8F275A #8E8F27 #278F5C
square
#28278F #8F275A #8E8F27 #278F5C
split-complementary
#28278F #8F5C27 #5A8F27
monochromatic
#0D0D2F #1B1A5F #28278F #3534BF #5F5DD3

Accessibility & contrast

On white

11.82
#28278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#28278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28278F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28278F#FFFFFF#000000##FFFFFF
##28278F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28278f;
/* rgb */ color: rgb(40, 39, 143);
/* oklch */ color: oklch(35.4% 0.165 274.4);
Tailwind
colors: {
  custom: {
    50: '#7262b1',
    500: '#28278f',
    950: '#000000',
  },
}
SCSS
$custom: #28278f;
$custom-light: #7262b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28278f",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 240.577,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.16514,
    "h": 274.4
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#28278F
secondary
#B7B85A
accent
#E047DF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28278F

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

Preview Lab → · Contrast checker → · Palette generator →

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