#28278D#28278D

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

Color values

HEX#28278D
RGBrgb(40, 39, 141)
HSLhsl(241, 57%, 35%)
HSVhsv(241, 72%, 55%)
CMYKcmyk(71.6%, 72.3%, 0%, 44.7%)
CIE-LABlab(23.08, 35.03, -56.05)
CIE-LCHlch(23.08, 66.09, 302.00°)
OKLaboklab(35.17% 0.0129 -0.162)
OKLCHoklch(35.17% 0.163 274.6)
XYZxyz(6.4067, 3.8246, 25.5947)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28278D #8C8D27
analogous
#27598D #28278D #5B278D
triadic
#28278D #8D2827 #278D28
tetradic
#28278D #8D2759 #8C8D27 #278D5B
square
#28278D #8D2759 #8C8D27 #278D5B
split-complementary
#28278D #8D5B27 #598D27
monochromatic
#0D0C2D #1A1A5D #28278D #3634BD #5E5CD2

Accessibility & contrast

On white

11.90
#28278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28278D
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28278D#FFFFFF#000000##FFFFFF
##28278D1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28278d;
/* rgb */ color: rgb(40, 39, 141);
/* oklch */ color: oklch(35.2% 0.163 274.6);
Tailwind
colors: {
  custom: {
    50: '#7262af',
    500: '#28278d',
    950: '#000000',
  },
}
SCSS
$custom: #28278d;
$custom-light: #7262af;
$custom-dark: #000000;
JSON
{
  "hex": "#28278d",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 240.588,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35167,
    "c": 0.16252,
    "h": 274.6
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#28278D
secondary
#B6B759
accent
#E048DE
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #28278D

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

Preview Lab → · Contrast checker → · Palette generator →

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