#2A1041#2A1041

#2A1041 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.090 H 304.9°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1041
RGBrgb(42, 16, 65)
HSLhsl(272, 60%, 16%)
HSVhsv(272, 75%, 25%)
CMYKcmyk(35.4%, 75.4%, 0%, 74.5%)
CIE-LABlab(10.88, 24.30, -25.89)
CIE-LCHlch(10.88, 35.51, 313.19°)
OKLaboklab(24.24% 0.0513 -0.0734)
OKLCHoklch(24.24% 0.09 304.9)
XYZxyz(2.0941, 1.2445, 5.1299)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1041 #274110
analogous
#111041 #2A1041 #41103F
triadic
#2A1041 #412A10 #10412A
tetradic
#2A1041 #411110 #274110 #103F41
square
#2A1041 #411110 #274110 #103F41
split-complementary
#2A1041 #3F4110 #104111
monochromatic
#100619 #100619 #2A1041 #4A1C72 #6928A3

Accessibility & contrast

On white

16.82
#2A1041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1041
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1041#FFFFFF#000000##FFFFFF
##2A10411.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#261B26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1041;
/* rgb */ color: rgb(42, 16, 65);
/* oklch */ color: oklch(24.2% 0.090 304.9);
Tailwind
colors: {
  custom: {
    50: '#665076',
    500: '#2a1041',
    950: '#000000',
  },
}
SCSS
$custom: #2a1041;
$custom-light: #665076;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1041",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 271.837,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24237,
    "c": 0.08959,
    "h": 304.9
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#2A1041
secondary
#547B32
accent
#E4448F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1041

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

Preview Lab → · Contrast checker → · Palette generator →

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