#28178C#28178C

#28178C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.177 H 277.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#28178C
RGBrgb(40, 23, 140)
HSLhsl(249, 72%, 32%)
HSVhsv(249, 84%, 55%)
CMYKcmyk(71.4%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.87, 43.51, -60.73)
CIE-LCHlch(19.87, 74.71, 305.62°)
OKLaboklab(32.87% 0.0215 -0.1755)
OKLCHoklch(32.87% 0.177 277)
XYZxyz(5.9136, 2.9568, 25.0649)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28178C #7B8C17
analogous
#17418C #28178C #63178C
triadic
#28178C #8C2817 #178C28
tetradic
#28178C #8C1741 #7B8C17 #178C63
square
#28178C #8C1741 #7B8C17 #178C63
split-complementary
#28178C #8C6317 #418C17
monochromatic
#0A0623 #190E57 #28178C #3720C1 #563EDF

Accessibility & contrast

On white

13.20
#28178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28178C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28178C#FFFFFF#000000##FFFFFF
##28178C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28178c;
/* rgb */ color: rgb(40, 23, 140);
/* oklch */ color: oklch(32.9% 0.177 277.0);
Tailwind
colors: {
  custom: {
    50: '#7358af',
    500: '#28178c',
    950: '#000000',
  },
}
SCSS
$custom: #28178c;
$custom-light: #7358af;
$custom-dark: #000000;
JSON
{
  "hex": "#28178c",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 248.718,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.1768,
    "h": 277
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#28178C
secondary
#ADBF3F
accent
#EF39D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28178C

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

Preview Lab → · Contrast checker → · Palette generator →

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