#2A1037#2A1037

#2A1037 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.077 H 312.8°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1037
RGBrgb(42, 16, 55)
HSLhsl(280, 55%, 14%)
HSVhsv(280, 71%, 22%)
CMYKcmyk(23.6%, 70.9%, 0%, 78.4%)
CIE-LABlab(10.10, 21.51, -20.00)
CIE-LCHlch(10.10, 29.37, 317.09°)
OKLaboklab(23.42% 0.0519 -0.0562)
OKLCHoklch(23.42% 0.077 312.8)
XYZxyz(1.8296, 1.1387, 3.7371)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1037 #1D3710
analogous
#171037 #2A1037 #371031
triadic
#2A1037 #372A10 #10372A
tetradic
#2A1037 #371710 #1D3710 #103137
square
#2A1037 #371710 #1D3710 #103137
split-complementary
#2A1037 #313710 #103717
monochromatic
#120718 #120718 #2A1037 #4E1E66 #722C96

Accessibility & contrast

On white

17.10
#2A1037 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A1037 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1037
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1037#FFFFFF#000000##FFFFFF
##2A10371.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A38
Deuteranopia (green-blind)
#0E1C36
Tritanopia (blue-blind)
#291721
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a1037;
/* rgb */ color: rgb(42, 16, 55);
/* oklch */ color: oklch(23.4% 0.077 312.8);
Tailwind
colors: {
  custom: {
    50: '#65506e',
    500: '#2a1037',
    950: '#000000',
  },
}
SCSS
$custom: #2a1037;
$custom-light: #65506e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1037",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 55
  },
  "hsl": {
    "h": 280,
    "s": 54.93,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2342,
    "c": 0.07651,
    "h": 312.8
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#2A1037
secondary
#477132
accent
#DE4A7B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A1037

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

Preview Lab → · Contrast checker → · Palette generator →

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