#28158E#28158E

#28158E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.9% C 0.181 H 276.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#28158E
RGBrgb(40, 21, 142)
HSLhsl(249, 74%, 32%)
HSVhsv(249, 85%, 56%)
CMYKcmyk(71.8%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.80, 45.04, -62.09)
CIE-LCHlch(19.80, 76.70, 305.95°)
OKLaboklab(32.89% 0.0217 -0.1794)
OKLCHoklch(32.89% 0.181 276.9)
XYZxyz(6.0241, 2.9399, 25.8359)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28158E #7B8E15
analogous
#153F8E #28158E #64158E
triadic
#28158E #8E2815 #158E28
tetradic
#28158E #8E153F #7B8E15 #158E64
square
#28158E #8E153F #7B8E15 #158E64
split-complementary
#28158E #8E6415 #3F8E15
monochromatic
#0A0523 #190D59 #28158E #371DC3 #563BE2

Accessibility & contrast

On white

13.22
#28158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28158E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28158E#FFFFFF#000000##FFFFFF
##28158E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28158e;
/* rgb */ color: rgb(40, 21, 142);
/* oklch */ color: oklch(32.9% 0.181 276.9);
Tailwind
colors: {
  custom: {
    50: '#7358b0',
    500: '#28158e',
    950: '#000000',
  },
}
SCSS
$custom: #28158e;
$custom-light: #7358b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28158e",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 249.421,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32894,
    "c": 0.18071,
    "h": 276.9
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#28158E
secondary
#ADC23D
accent
#F137D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #28158E

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

Preview Lab → · Contrast checker → · Palette generator →

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