#28158C#28158C

#28158C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.178 H 277.2°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#28158C
RGBrgb(40, 21, 140)
HSLhsl(250, 74%, 32%)
HSVhsv(250, 85%, 55%)
CMYKcmyk(71.4%, 85%, 0%, 45.1%)
CIE-LABlab(19.56, 44.43, -61.25)
CIE-LCHlch(19.56, 75.66, 305.96°)
OKLaboklab(32.66% 0.0223 -0.1769)
OKLCHoklch(32.66% 0.178 277.2)
XYZxyz(5.8753, 2.8804, 25.0522)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28158C #798C15
analogous
#153E8C #28158C #64158C
triadic
#28158C #8C2815 #158C28
tetradic
#28158C #8C153E #798C15 #158C64
square
#28158C #8C153E #798C15 #158C64
split-complementary
#28158C #8C6415 #3E8C15
monochromatic
#0A0522 #190D57 #28158C #371DC1 #553AE1

Accessibility & contrast

On white

13.32
#28158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28158C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28158C#FFFFFF#000000##FFFFFF
##28158C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28158c;
/* rgb */ color: rgb(40, 21, 140);
/* oklch */ color: oklch(32.7% 0.178 277.2);
Tailwind
colors: {
  custom: {
    50: '#7357af',
    500: '#28158c',
    950: '#000000',
  },
}
SCSS
$custom: #28158c;
$custom-light: #7357af;
$custom-dark: #000000;
JSON
{
  "hex": "#28158c",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 249.58,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.17836,
    "h": 277.2
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#28158C
secondary
#ABC03D
accent
#F137D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #28158C

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

Preview Lab → · Contrast checker → · Palette generator →

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