#28158A#28158A

#28158A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.176 H 277.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#28158A
RGBrgb(40, 21, 138)
HSLhsl(250, 74%, 31%)
HSVhsv(250, 85%, 54%)
CMYKcmyk(71%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.32, 43.82, -60.40)
CIE-LCHlch(19.32, 74.62, 305.96°)
OKLaboklab(32.42% 0.023 -0.1745)
OKLCHoklch(32.42% 0.176 277.5)
XYZxyz(5.7292, 2.8219, 24.2826)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28158A #778A15
analogous
#153C8A #28158A #62158A
triadic
#28158A #8A2815 #158A28
tetradic
#28158A #8A153C #778A15 #158A62
square
#28158A #8A153C #778A15 #158A62
split-complementary
#28158A #8A6215 #3C8A15
monochromatic
#090520 #190D55 #28158A #371DBF #5439E1

Accessibility & contrast

On white

13.42
#28158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#28158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28158A
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28158A#FFFFFF#000000##FFFFFF
##28158A1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28158a;
/* rgb */ color: rgb(40, 21, 138);
/* oklch */ color: oklch(32.4% 0.176 277.5);
Tailwind
colors: {
  custom: {
    50: '#7257ad',
    500: '#28158a',
    950: '#000000',
  },
}
SCSS
$custom: #28158a;
$custom-light: #7257ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28158a",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 249.744,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3242,
    "c": 0.17599,
    "h": 277.5
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#28158A
secondary
#A9BE3D
accent
#F038D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #28158A

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

Preview Lab → · Contrast checker → · Palette generator →

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