#2A1044#2A1044

#2A1044 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.093 H 303.0°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1044
RGBrgb(42, 16, 68)
HSLhsl(270, 62%, 16%)
HSVhsv(270, 76%, 27%)
CMYKcmyk(38.2%, 76.5%, 0%, 73.3%)
CIE-LABlab(11.14, 25.17, -27.59)
CIE-LCHlch(11.14, 37.34, 312.37°)
OKLaboklab(24.5% 0.0509 -0.0785)
OKLCHoklch(24.5% 0.094 303)
XYZxyz(2.1833, 1.2802, 5.5998)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1044 #2A4410
analogous
#101044 #2A1044 #441044
triadic
#2A1044 #442A10 #10442A
tetradic
#2A1044 #441010 #2A4410 #104444
square
#2A1044 #441010 #2A4410 #104444
split-complementary
#2A1044 #444410 #104410
monochromatic
#0F0619 #0F0619 #2A1044 #491C76 #6727A7

Accessibility & contrast

On white

16.72
#2A1044 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1044
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1044#FFFFFF#000000##FFFFFF
##2A10441.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D46
Deuteranopia (green-blind)
#001E43
Tritanopia (blue-blind)
#251C28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1044;
/* rgb */ color: rgb(42, 16, 68);
/* oklch */ color: oklch(24.5% 0.093 303.0);
Tailwind
colors: {
  custom: {
    50: '#665078',
    500: '#2a1044',
    950: '#000000',
  },
}
SCSS
$custom: #2a1044;
$custom-light: #665078;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1044",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 68
  },
  "hsl": {
    "h": 270,
    "s": 61.905,
    "l": 16.471
  },
  "oklch": {
    "l": 0.245,
    "c": 0.0935,
    "h": 303
  },
  "luminance": 0.0128
}

Semantic roles & 50–950 ramp

primary
#2A1044
secondary
#587E32
accent
#E54394
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1044

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

Preview Lab → · Contrast checker → · Palette generator →

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