#2A0646#2A0646

#2A0646 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.109 H 304.3°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#2A0646
RGBrgb(42, 6, 70)
HSLhsl(274, 84%, 15%)
HSVhsv(274, 91%, 27%)
CMYKcmyk(40%, 91.4%, 0%, 72.5%)
CIE-LABlab(9.52, 30.86, -31.63)
CIE-LCHlch(9.52, 44.19, 314.30°)
OKLaboklab(23.42% 0.0616 -0.0902)
OKLCHoklch(23.42% 0.109 304.3)
XYZxyz(2.1252, 1.0647, 5.8867)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0646 #224606
analogous
#0A0646 #2A0646 #460642
triadic
#2A0646 #462A06 #06462A
tetradic
#2A0646 #460A06 #224606 #064246
square
#2A0646 #460A06 #224606 #064246
split-complementary
#2A0646 #424606 #06460A
monochromatic
#11021C #11021C #2A0646 #4C0B7E #6E10B7

Accessibility & contrast

On white

17.31
#2A0646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A0646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0646
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0646#FFFFFF#000000##FFFFFF
##2A06461.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#241827
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0646;
/* rgb */ color: rgb(42, 6, 70);
/* oklch */ color: oklch(23.4% 0.109 304.3);
Tailwind
colors: {
  custom: {
    50: '#674b7a',
    500: '#2a0646',
    950: '#000000',
  },
}
SCSS
$custom: #2a0646;
$custom-light: #674b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0646",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 70
  },
  "hsl": {
    "h": 273.75,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23419,
    "c": 0.10923,
    "h": 304.3
  },
  "luminance": 0.01065
}

Semantic roles & 50–950 ramp

primary
#2A0646
secondary
#4E8522
accent
#FA2D87
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0646

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

Preview Lab → · Contrast checker → · Palette generator →

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