#2A1046#2A1046

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

Color values

HEX#2A1046
RGBrgb(42, 16, 70)
HSLhsl(269, 63%, 17%)
HSVhsv(269, 77%, 27%)
CMYKcmyk(40%, 77.1%, 0%, 72.5%)
CIE-LABlab(11.31, 25.75, -28.71)
CIE-LCHlch(11.31, 38.57, 311.89°)
OKLaboklab(24.68% 0.0506 -0.0817)
OKLCHoklch(24.68% 0.096 301.7)
XYZxyz(2.2454, 1.3050, 5.9268)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1046 #2C4610
analogous
#101146 #2A1046 #451046
triadic
#2A1046 #462A10 #10462A
tetradic
#2A1046 #461011 #2C4610 #104645
square
#2A1046 #461011 #2C4610 #104645
split-complementary
#2A1046 #464510 #114610
monochromatic
#0F0619 #0F0619 #2A1046 #481B78 #6627AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1046#FFFFFF#000000##FFFFFF
##2A10461.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)
#001E48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#241D29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1046;
/* rgb */ color: rgb(42, 16, 70);
/* oklch */ color: oklch(24.7% 0.096 301.7);
Tailwind
colors: {
  custom: {
    50: '#67507a',
    500: '#2a1046',
    950: '#000000',
  },
}
SCSS
$custom: #2a1046;
$custom-light: #67507a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1046",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 268.889,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2468,
    "c": 0.09611,
    "h": 301.7
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#2A1046
secondary
#5A8032
accent
#E64297
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1046

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

Preview Lab → · Contrast checker → · Palette generator →

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