#28178B#28178B

#28178B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.176 H 277.1°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#28178B
RGBrgb(40, 23, 139)
HSLhsl(249, 72%, 32%)
HSVhsv(249, 83%, 55%)
CMYKcmyk(71.2%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.75, 43.20, -60.30)
CIE-LCHlch(19.75, 74.18, 305.62°)
OKLaboklab(32.76% 0.0219 -0.1742)
OKLCHoklch(32.76% 0.176 277.1)
XYZxyz(5.8402, 2.9275, 24.6784)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28178B #7A8B17
analogous
#17408B #28178B #62178B
triadic
#28178B #8B2817 #178B28
tetradic
#28178B #8B1740 #7A8B17 #178B62
square
#28178B #8B1740 #7A8B17 #178B62
split-complementary
#28178B #8B6217 #408B17
monochromatic
#0A0622 #190E56 #28178B #3720C0 #553DDF

Accessibility & contrast

On white

13.24
#28178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28178B
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28178B#FFFFFF#000000##FFFFFF
##28178B1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28178b;
/* rgb */ color: rgb(40, 23, 139);
/* oklch */ color: oklch(32.8% 0.176 277.1);
Tailwind
colors: {
  custom: {
    50: '#7358ae',
    500: '#28178b',
    950: '#000000',
  },
}
SCSS
$custom: #28178b;
$custom-light: #7358ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28178b",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 248.793,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32755,
    "c": 0.1756,
    "h": 277.1
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#28178B
secondary
#ACBF3F
accent
#EE39D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #28178B

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

Preview Lab → · Contrast checker → · Palette generator →

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