#2A1040#2A1040

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

Color values

HEX#2A1040
RGBrgb(42, 16, 64)
HSLhsl(273, 60%, 16%)
HSVhsv(273, 75%, 25%)
CMYKcmyk(34.4%, 75%, 0%, 74.9%)
CIE-LABlab(10.80, 24.01, -25.31)
CIE-LCHlch(10.80, 34.89, 313.49°)
OKLaboklab(24.15% 0.0514 -0.0718)
OKLCHoklch(24.15% 0.088 305.6)
XYZxyz(2.0653, 1.2330, 4.9787)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1040 #264010
analogous
#121040 #2A1040 #40103E
triadic
#2A1040 #402A10 #10402A
tetradic
#2A1040 #401210 #264010 #103E40
square
#2A1040 #401210 #264010 #103E40
split-complementary
#2A1040 #3E4010 #104012
monochromatic
#100618 #100618 #2A1040 #4A1C71 #6A28A2

Accessibility & contrast

On white

16.85
#2A1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1040
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1040#FFFFFF#000000##FFFFFF
##2A10401.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#261A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1040;
/* rgb */ color: rgb(42, 16, 64);
/* oklch */ color: oklch(24.2% 0.088 305.6);
Tailwind
colors: {
  custom: {
    50: '#665075',
    500: '#2a1040',
    950: '#000000',
  },
}
SCSS
$custom: #2a1040;
$custom-light: #665075;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1040",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 272.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24151,
    "c": 0.08828,
    "h": 305.6
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#2A1040
secondary
#537A32
accent
#E3458D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1040

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

Preview Lab → · Contrast checker → · Palette generator →

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