#2A1042#2A1042

#2A1042 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.091 H 304.3°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#2A1042
RGBrgb(42, 16, 66)
HSLhsl(271, 61%, 16%)
HSVhsv(271, 76%, 26%)
CMYKcmyk(36.4%, 75.8%, 0%, 74.1%)
CIE-LABlab(10.97, 24.59, -26.46)
CIE-LCHlch(10.97, 36.12, 312.90°)
OKLaboklab(24.32% 0.0512 -0.0751)
OKLCHoklch(24.32% 0.091 304.3)
XYZxyz(2.1233, 1.2562, 5.2838)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1042 #284210
analogous
#111042 #2A1042 #421041
triadic
#2A1042 #422A10 #10422A
tetradic
#2A1042 #421110 #284210 #104142
square
#2A1042 #421110 #284210 #104142
split-complementary
#2A1042 #414210 #104211
monochromatic
#100619 #100619 #2A1042 #491C73 #6928A5

Accessibility & contrast

On white

16.78
#2A1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1042
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1042#FFFFFF#000000##FFFFFF
##2A10421.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#021D41
Tritanopia (blue-blind)
#251B27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1042;
/* rgb */ color: rgb(42, 16, 66);
/* oklch */ color: oklch(24.3% 0.091 304.3);
Tailwind
colors: {
  custom: {
    50: '#665077',
    500: '#2a1042',
    950: '#000000',
  },
}
SCSS
$custom: #2a1042;
$custom-light: #665077;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1042",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 271.2,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24324,
    "c": 0.09089,
    "h": 304.3
  },
  "luminance": 0.01256
}

Semantic roles & 50–950 ramp

primary
#2A1042
secondary
#557C32
accent
#E44491
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1042

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

Preview Lab → · Contrast checker → · Palette generator →

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