#28178A#28178A

#28178A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.174 H 277.3°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#28178A
RGBrgb(40, 23, 138)
HSLhsl(249, 71%, 32%)
HSVhsv(249, 83%, 54%)
CMYKcmyk(71%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.63, 42.89, -59.87)
CIE-LCHlch(19.63, 73.65, 305.62°)
OKLaboklab(32.64% 0.0222 -0.173)
OKLCHoklch(32.64% 0.174 277.3)
XYZxyz(5.7674, 2.8984, 24.2953)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28178A #798A17
analogous
#173F8A #28178A #62178A
triadic
#28178A #8A2817 #178A28
tetradic
#28178A #8A173F #798A17 #178A62
square
#28178A #8A173F #798A17 #178A62
split-complementary
#28178A #8A6217 #3F8A17
monochromatic
#0A0621 #190E56 #28178A #3720BE #553DDF

Accessibility & contrast

On white

13.29
#28178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28178A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28178A#FFFFFF#000000##FFFFFF
##28178A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28178a;
/* rgb */ color: rgb(40, 23, 138);
/* oklch */ color: oklch(32.6% 0.174 277.3);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#28178a',
    950: '#000000',
  },
}
SCSS
$custom: #28178a;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28178a",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 248.87,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32638,
    "c": 0.1744,
    "h": 277.3
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#28178A
secondary
#ABBE3F
accent
#EE3AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28178A

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

Preview Lab → · Contrast checker → · Palette generator →

#28178A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva