#2A0236#2A0236

#2A0236 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.099 H 316.9°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#2A0236
RGBrgb(42, 2, 54)
HSLhsl(286, 93%, 11%)
HSVhsv(286, 96%, 21%)
CMYKcmyk(22.2%, 96.3%, 0%, 78.8%)
CIE-LABlab(7.25, 29.07, -23.86)
CIE-LCHlch(7.25, 37.61, 320.62°)
OKLaboklab(21.35% 0.0721 -0.0675)
OKLCHoklch(21.35% 0.099 316.9)
XYZxyz(1.6423, 0.8021, 3.5576)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0236 #0E3602
analogous
#100236 #2A0236 #360228
triadic
#2A0236 #362A02 #02362A
tetradic
#2A0236 #361002 #0E3602 #022836
square
#2A0236 #361002 #0E3602 #022836
split-complementary
#2A0236 #283602 #023610
monochromatic
#17011E #17011E #2A0236 #580471 #8606AC

Accessibility & contrast

On white

18.10
#2A0236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0236
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0236#FFFFFF#000000##FFFFFF
##2A02361.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#021735
Tritanopia (blue-blind)
#290D1C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0236;
/* rgb */ color: rgb(42, 2, 54);
/* oklch */ color: oklch(21.3% 0.099 316.9);
Tailwind
colors: {
  custom: {
    50: '#66486d',
    500: '#2a0236',
    950: '#000000',
  },
}
SCSS
$custom: #2a0236;
$custom-light: #66486d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0236",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 286.154,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21345,
    "c": 0.09874,
    "h": 316.9
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#2A0236
secondary
#307A1A
accent
#FF295A
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060007
muted
#7A777A

Preview Lab

Preview with #2A0236

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

Preview Lab → · Contrast checker → · Palette generator →

#2A0236 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva