#28178D#28178D

#28178D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.178 H 276.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#28178D
RGBrgb(40, 23, 141)
HSLhsl(249, 72%, 32%)
HSVhsv(249, 84%, 55%)
CMYKcmyk(71.6%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.99, 43.82, -61.16)
CIE-LCHlch(19.99, 75.24, 305.62°)
OKLaboklab(32.99% 0.0212 -0.1767)
OKLCHoklch(32.99% 0.178 276.9)
XYZxyz(5.9876, 2.9864, 25.4550)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28178D #7C8D17
analogous
#17418D #28178D #63178D
triadic
#28178D #8D2817 #178D28
tetradic
#28178D #8D1741 #7C8D17 #178D63
square
#28178D #8D1741 #7C8D17 #178D63
split-complementary
#28178D #8D6317 #418D17
monochromatic
#0A0624 #190E58 #28178D #3720C2 #563FE0

Accessibility & contrast

On white

13.15
#28178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28178D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28178D#FFFFFF#000000##FFFFFF
##28178D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28178d;
/* rgb */ color: rgb(40, 23, 141);
/* oklch */ color: oklch(33.0% 0.178 276.9);
Tailwind
colors: {
  custom: {
    50: '#7359b0',
    500: '#28178d',
    950: '#000000',
  },
}
SCSS
$custom: #28178d;
$custom-light: #7359b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28178d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 248.644,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32989,
    "c": 0.17799,
    "h": 276.9
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#28178D
secondary
#ADC040
accent
#EF39D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28178D

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

Preview Lab → · Contrast checker → · Palette generator →

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