#2A1045#2A1045

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

Color values

HEX#2A1045
RGBrgb(42, 16, 69)
HSLhsl(269, 62%, 17%)
HSVhsv(269, 77%, 27%)
CMYKcmyk(39.1%, 76.8%, 0%, 72.9%)
CIE-LABlab(11.22, 25.46, -28.15)
CIE-LCHlch(11.22, 37.96, 312.12°)
OKLaboklab(24.59% 0.0507 -0.0801)
OKLCHoklch(24.59% 0.095 302.3)
XYZxyz(2.2141, 1.2925, 5.7619)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1045 #2B4510
analogous
#101145 #2A1045 #451045
triadic
#2A1045 #452A10 #10452A
tetradic
#2A1045 #451011 #2B4510 #104545
square
#2A1045 #451011 #2B4510 #104545
split-complementary
#2A1045 #454510 #114510
monochromatic
#0F0619 #0F0619 #2A1045 #481C77 #6627A8

Accessibility & contrast

On white

16.69
#2A1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1045
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1045#FFFFFF#000000##FFFFFF
##2A10451.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#241C29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1045;
/* rgb */ color: rgb(42, 16, 69);
/* oklch */ color: oklch(24.6% 0.095 302.3);
Tailwind
colors: {
  custom: {
    50: '#665079',
    500: '#2a1045',
    950: '#000000',
  },
}
SCSS
$custom: #2a1045;
$custom-light: #665079;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1045",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 269.434,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2459,
    "c": 0.09481,
    "h": 302.3
  },
  "luminance": 0.01292
}

Semantic roles & 50–950 ramp

primary
#2A1045
secondary
#597F32
accent
#E54295
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1045

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

Preview Lab → · Contrast checker → · Palette generator →

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