#28159E#28159E

#28159E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.199 H 274.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#28159E
RGBrgb(40, 21, 158)
HSLhsl(248, 77%, 35%)
HSVhsv(248, 87%, 62%)
CMYKcmyk(74.7%, 86.7%, 0%, 38%)
CIE-LABlab(21.78, 49.81, -68.69)
CIE-LCHlch(21.78, 84.84, 305.95°)
OKLaboklab(34.82% 0.0166 -0.1985)
OKLCHoklch(34.82% 0.199 274.8)
XYZxyz(7.3128, 3.4553, 32.6227)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28159E #8B9E15
analogous
#15479E #28159E #6C159E
triadic
#28159E #9E2815 #159E28
tetradic
#28159E #9E1547 #8B9E15 #159E6C
square
#28159E #9E1547 #8B9E15 #159E6C
split-complementary
#28159E #9E6C15 #479E15
monochromatic
#0D0732 #1A0E68 #28159E #361CD4 #5D47E7

Accessibility & contrast

On white

12.42
#28159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28159E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28159E#FFFFFF#000000##FFFFFF
##28159E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28159e;
/* rgb */ color: rgb(40, 21, 158);
/* oklch */ color: oklch(34.8% 0.199 274.8);
Tailwind
colors: {
  custom: {
    50: '#7759bc',
    500: '#28159e',
    950: '#000000',
  },
}
SCSS
$custom: #28159e;
$custom-light: #7759bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28159e",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 248.321,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34822,
    "c": 0.19921,
    "h": 274.8
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#28159E
secondary
#B6C747
accent
#F335D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28159E

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

Preview Lab → · Contrast checker → · Palette generator →

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