#2A1142#2A1142

#2A1142 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.089 H 303.9°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2A1142
RGBrgb(42, 17, 66)
HSLhsl(271, 59%, 16%)
HSVhsv(271, 74%, 26%)
CMYKcmyk(36.4%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.18, 23.99, -26.11)
CIE-LCHlch(11.18, 35.46, 312.58°)
OKLaboklab(24.48% 0.0498 -0.0741)
OKLCHoklch(24.48% 0.089 303.9)
XYZxyz(2.1384, 1.2865, 5.2889)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1142 #294211
analogous
#121142 #2A1142 #421142
triadic
#2A1142 #422A11 #11422A
tetradic
#2A1142 #421211 #294211 #114242
square
#2A1142 #421211 #294211 #114242
split-complementary
#2A1142 #424211 #114212
monochromatic
#0F0618 #0F0618 #2A1142 #491E73 #682AA3

Accessibility & contrast

On white

16.70
#2A1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1142
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1142#FFFFFF#000000##FFFFFF
##2A11421.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#251C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1142;
/* rgb */ color: rgb(42, 17, 66);
/* oklch */ color: oklch(24.5% 0.089 303.9);
Tailwind
colors: {
  custom: {
    50: '#665177',
    500: '#2a1142',
    950: '#000000',
  },
}
SCSS
$custom: #2a1142;
$custom-light: #665177;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1142",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 270.612,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24479,
    "c": 0.0893,
    "h": 303.9
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#2A1142
secondary
#577C33
accent
#E24692
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1142

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

Preview Lab → · Contrast checker → · Palette generator →

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