Midnight Purple#280137

#280137 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.9% C 0.101 H 314.2°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Midnight Purple — editorial page

Color values

HEX#280137
RGBrgb(40, 1, 55)
HSLhsl(283, 96%, 11%)
HSVhsv(283, 98%, 22%)
CMYKcmyk(27.3%, 98.2%, 0%, 78.4%)
CIE-LABlab(6.76, 29.37, -25.39)
CIE-LCHlch(6.76, 38.82, 319.16°)
OKLaboklab(20.93% 0.0703 -0.0723)
OKLCHoklch(20.93% 0.101 314.2)
XYZxyz(1.5754, 0.7487, 3.6752)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280137 #103701
analogous
#0D0137 #280137 #37012B
triadic
#280137 #372801 #013728
tetradic
#280137 #370D01 #103701 #012B37
square
#280137 #370D01 #103701 #012B37
split-complementary
#280137 #2B3701 #01370D
monochromatic
#16011E #16011E #280137 #540273 #7F03AF

Accessibility & contrast

On white

18.26
#280137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#280137 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280137
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280137#FFFFFF#000000##FFFFFF
##2801371.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001338
Deuteranopia (green-blind)
#001636
Tritanopia (blue-blind)
#260E1C
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #280137;
/* rgb */ color: rgb(40, 1, 55);
/* oklch */ color: oklch(20.9% 0.101 314.2);
Tailwind
colors: {
  custom: {
    50: '#65476e',
    500: '#280137',
    950: '#000000',
  },
}
SCSS
$custom: #280137;
$custom-light: #65476e;
$custom-dark: #000000;
JSON
{
  "hex": "#280137",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 55
  },
  "hsl": {
    "h": 283.333,
    "s": 96.429,
    "l": 10.98
  },
  "oklch": {
    "l": 0.2093,
    "c": 0.10079,
    "h": 314.2
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#280137
secondary
#347C18
accent
#FF2964
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060007
muted
#7A777A

Preview Lab

Preview with #280137

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

Preview Lab → · Contrast checker → · Palette generator →

#280137 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva