#28159D#28159D

#28159D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.7% C 0.198 H 274.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#28159D
RGBrgb(40, 21, 157)
HSLhsl(248, 76%, 35%)
HSVhsv(248, 87%, 62%)
CMYKcmyk(74.5%, 86.6%, 0%, 38.4%)
CIE-LABlab(21.66, 49.51, -68.28)
CIE-LCHlch(21.66, 84.34, 305.95°)
OKLaboklab(34.7% 0.0169 -0.1973)
OKLCHoklch(34.7% 0.198 274.9)
XYZxyz(7.2270, 3.4210, 32.1712)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28159D #8A9D15
analogous
#15469D #28159D #6C159D
triadic
#28159D #9D2815 #159D28
tetradic
#28159D #9D1546 #8A9D15 #159D6C
square
#28159D #9D1546 #8A9D15 #159D6C
split-complementary
#28159D #9D6C15 #469D15
monochromatic
#0C0731 #1A0E67 #28159D #361CD3 #5D46E6

Accessibility & contrast

On white

12.47
#28159D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#28159D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28159D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28159D#FFFFFF#000000##FFFFFF
##28159D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28159d;
/* rgb */ color: rgb(40, 21, 157);
/* oklch */ color: oklch(34.7% 0.198 274.9);
Tailwind
colors: {
  custom: {
    50: '#7759bb',
    500: '#28159d',
    950: '#000000',
  },
}
SCSS
$custom: #28159d;
$custom-light: #7759bb;
$custom-dark: #000000;
JSON
{
  "hex": "#28159d",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 157
  },
  "hsl": {
    "h": 248.382,
    "s": 76.404,
    "l": 34.902
  },
  "oklch": {
    "l": 0.347,
    "c": 0.19807,
    "h": 274.9
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#28159D
secondary
#B5C747
accent
#F335D8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28159D

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

Preview Lab → · Contrast checker → · Palette generator →

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