#28153B#28153B

#28153B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.072 H 304.7°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#28153B
RGBrgb(40, 21, 59)
HSLhsl(270, 48%, 16%)
HSVhsv(270, 64%, 23%)
CMYKcmyk(32.2%, 64.4%, 0%, 76.9%)
CIE-LABlab(11.30, 18.80, -20.97)
CIE-LCHlch(11.30, 28.17, 311.88°)
OKLaboklab(24.33% 0.0409 -0.0591)
OKLCHoklch(24.33% 0.072 304.7)
XYZxyz(1.9325, 1.3032, 4.2866)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28153B #283B15
analogous
#15153B #28153B #3B153B
triadic
#28153B #3B2815 #153B28
tetradic
#28153B #3B1515 #283B15 #153B3B
square
#28153B #3B1515 #283B15 #153B3B
split-complementary
#28153B #3B3B15 #153B15
monochromatic
#0F0817 #0F0817 #28153B #472568 #653595

Accessibility & contrast

On white

16.66
#28153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#28153B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28153B
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28153B#FFFFFF#000000##FFFFFF
##28153B1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071E3C
Deuteranopia (green-blind)
#0E1E3A
Tritanopia (blue-blind)
#251C25
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28153b;
/* rgb */ color: rgb(40, 21, 59);
/* oklch */ color: oklch(24.3% 0.072 304.7);
Tailwind
colors: {
  custom: {
    50: '#635371',
    500: '#28153b',
    950: '#000000',
  },
}
SCSS
$custom: #28153b;
$custom-light: #635371;
$custom-dark: #000000;
JSON
{
  "hex": "#28153b",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 270,
    "s": 47.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24326,
    "c": 0.07191,
    "h": 304.7
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#28153B
secondary
#567239
accent
#D75194
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28153B

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

Preview Lab → · Contrast checker → · Palette generator →

#28153B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva