#28158F#28158F

#28158F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.182 H 276.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#28158F
RGBrgb(40, 21, 143)
HSLhsl(249, 74%, 32%)
HSVhsv(249, 85%, 56%)
CMYKcmyk(72%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.92, 45.34, -62.51)
CIE-LCHlch(19.92, 77.22, 305.95°)
OKLaboklab(33.01% 0.0214 -0.1806)
OKLCHoklch(33.01% 0.182 276.8)
XYZxyz(6.0995, 2.9700, 26.2331)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28158F #7C8F15
analogous
#153F8F #28158F #65158F
triadic
#28158F #8F2815 #158F28
tetradic
#28158F #8F153F #7C8F15 #158F65
square
#28158F #8F153F #7C8F15 #158F65
split-complementary
#28158F #8F6515 #3F8F15
monochromatic
#0A0524 #190D5A #28158F #371DC4 #563CE2

Accessibility & contrast

On white

13.17
#28158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28158F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28158F#FFFFFF#000000##FFFFFF
##28158F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28158f;
/* rgb */ color: rgb(40, 21, 143);
/* oklch */ color: oklch(33.0% 0.182 276.8);
Tailwind
colors: {
  custom: {
    50: '#7458b1',
    500: '#28158f',
    950: '#000000',
  },
}
SCSS
$custom: #28158f;
$custom-light: #7458b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28158f",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 249.344,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.18188,
    "h": 276.8
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#28158F
secondary
#ADC23E
accent
#F137D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #28158F

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

Preview Lab → · Contrast checker → · Palette generator →

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