#28122F#28122F

#28122F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 22.9% C 0.061 H 317.5°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#28122F
RGBrgb(40, 18, 47)
HSLhsl(286, 45%, 13%)
HSVhsv(286, 62%, 18%)
CMYKcmyk(14.9%, 61.7%, 0%, 81.6%)
CIE-LABlab(9.71, 17.43, -14.80)
CIE-LCHlch(9.71, 22.87, 319.66°)
OKLaboklab(22.89% 0.0449 -0.0411)
OKLCHoklch(22.89% 0.061 317.5)
XYZxyz(1.6044, 1.0890, 2.8145)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28122F #192F12
analogous
#19122F #28122F #2F1227
triadic
#28122F #2F2812 #122F28
tetradic
#28122F #2F1912 #192F12 #12272F
square
#28122F #2F1912 #192F12 #12272F
split-complementary
#28122F #272F12 #122F19
monochromatic
#130816 #130816 #28122F #4E235B #733488

Accessibility & contrast

On white

17.24
#28122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#28122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28122F
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28122F#FFFFFF#000000##FFFFFF
##28122F1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#131C2E
Tritanopia (blue-blind)
#28161E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #28122f;
/* rgb */ color: rgb(40, 18, 47);
/* oklch */ color: oklch(22.9% 0.061 317.5);
Tailwind
colors: {
  custom: {
    50: '#635067',
    500: '#28122f',
    950: '#000000',
  },
}
SCSS
$custom: #28122f;
$custom-light: #635067;
$custom-dark: #000000;
JSON
{
  "hex": "#28122f",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 285.517,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22892,
    "c": 0.06088,
    "h": 317.5
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#28122F
secondary
#426736
accent
#D45373
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050206
muted
#79787A

Preview Lab

Preview with #28122F

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

Preview Lab → · Contrast checker → · Palette generator →

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