#2A0647#2A0647

#2A0647 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.110 H 303.7°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#2A0647
RGBrgb(42, 6, 71)
HSLhsl(273, 84%, 15%)
HSVhsv(273, 92%, 28%)
CMYKcmyk(40.8%, 91.5%, 0%, 72.2%)
CIE-LABlab(9.62, 31.13, -32.16)
CIE-LCHlch(9.62, 44.76, 314.06°)
OKLaboklab(23.52% 0.0612 -0.0918)
OKLCHoklch(23.52% 0.11 303.7)
XYZxyz(2.1570, 1.0774, 6.0543)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0647 #234706
analogous
#0A0647 #2A0647 #470643
triadic
#2A0647 #472A06 #06472A
tetradic
#2A0647 #470A06 #234706 #064347
square
#2A0647 #470A06 #234706 #064347
split-complementary
#2A0647 #434706 #06470A
monochromatic
#11021C #11021C #2A0647 #4B0B7F #6D10B8

Accessibility & contrast

On white

17.28
#2A0647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0647
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0647#FFFFFF#000000##FFFFFF
##2A06471.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0647;
/* rgb */ color: rgb(42, 6, 71);
/* oklch */ color: oklch(23.5% 0.110 303.7);
Tailwind
colors: {
  custom: {
    50: '#684b7b',
    500: '#2a0647',
    950: '#000000',
  },
}
SCSS
$custom: #2a0647;
$custom-light: #684b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0647",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 273.231,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2352,
    "c": 0.11033,
    "h": 303.7
  },
  "luminance": 0.01077
}

Semantic roles & 50–950 ramp

primary
#2A0647
secondary
#4F8623
accent
#FB2D89
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0647

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

Preview Lab → · Contrast checker → · Palette generator →

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