#2A1241#2A1241

#2A1241 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.086 H 304.2°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2A1241
RGBrgb(42, 18, 65)
HSLhsl(271, 57%, 16%)
HSVhsv(271, 72%, 25%)
CMYKcmyk(35.4%, 72.3%, 0%, 74.5%)
CIE-LABlab(11.32, 23.10, -25.18)
CIE-LCHlch(11.32, 34.17, 312.53°)
OKLaboklab(24.55% 0.0485 -0.0714)
OKLCHoklch(24.55% 0.086 304.2)
XYZxyz(2.1251, 1.3065, 5.1402)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1241 #294112
analogous
#131241 #2A1241 #411241
triadic
#2A1241 #412A12 #12412A
tetradic
#2A1241 #411312 #294112 #124141
square
#2A1241 #411312 #294112 #124141
split-complementary
#2A1241 #414112 #124113
monochromatic
#0F0718 #0F0718 #2A1241 #491F71 #682DA1

Accessibility & contrast

On white

16.65
#2A1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1241
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1241#FFFFFF#000000##FFFFFF
##2A12411.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#051E40
Tritanopia (blue-blind)
#261C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1241;
/* rgb */ color: rgb(42, 18, 65);
/* oklch */ color: oklch(24.6% 0.086 304.2);
Tailwind
colors: {
  custom: {
    50: '#665176',
    500: '#2a1241',
    950: '#000000',
  },
}
SCSS
$custom: #2a1241;
$custom-light: #665176;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1241",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 270.638,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24554,
    "c": 0.08631,
    "h": 304.2
  },
  "luminance": 0.01307
}

Semantic roles & 50–950 ramp

primary
#2A1241
secondary
#577A35
accent
#E04892
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1241

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

Preview Lab → · Contrast checker → · Palette generator →

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