#2A1141#2A1141

#2A1141 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.088 H 304.6°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2A1141
RGBrgb(42, 17, 65)
HSLhsl(271, 59%, 16%)
HSVhsv(271, 74%, 25%)
CMYKcmyk(35.4%, 73.8%, 0%, 74.5%)
CIE-LABlab(11.10, 23.70, -25.54)
CIE-LCHlch(11.10, 34.84, 312.87°)
OKLaboklab(24.39% 0.0499 -0.0724)
OKLCHoklch(24.39% 0.088 304.6)
XYZxyz(2.1092, 1.2748, 5.1349)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1141 #284111
analogous
#121141 #2A1141 #411140
triadic
#2A1141 #412A11 #11412A
tetradic
#2A1141 #411211 #284111 #114041
square
#2A1141 #411211 #284111 #114041
split-complementary
#2A1141 #404111 #114112
monochromatic
#100618 #100618 #2A1141 #491E72 #692AA2

Accessibility & contrast

On white

16.73
#2A1141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A1141 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1141
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1141#FFFFFF#000000##FFFFFF
##2A11411.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#041E40
Tritanopia (blue-blind)
#261B27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1141;
/* rgb */ color: rgb(42, 17, 65);
/* oklch */ color: oklch(24.4% 0.088 304.6);
Tailwind
colors: {
  custom: {
    50: '#665176',
    500: '#2a1141',
    950: '#000000',
  },
}
SCSS
$custom: #2a1141;
$custom-light: #665176;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1141",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 65
  },
  "hsl": {
    "h": 271.25,
    "s": 58.537,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24393,
    "c": 0.08797,
    "h": 304.6
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#2A1141
secondary
#557B33
accent
#E24691
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1141

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

Preview Lab → · Contrast checker → · Palette generator →

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