#2A0747#2A0747

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

Color values

HEX#2A0747
RGBrgb(42, 7, 71)
HSLhsl(273, 82%, 15%)
HSVhsv(273, 90%, 28%)
CMYKcmyk(40.8%, 90.1%, 0%, 72.2%)
CIE-LABlab(9.79, 30.63, -31.88)
CIE-LCHlch(9.79, 44.21, 313.85°)
OKLaboklab(23.64% 0.0601 -0.091)
OKLCHoklch(23.64% 0.109 303.5)
XYZxyz(2.1679, 1.0991, 6.0580)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0747 #244707
analogous
#0A0747 #2A0747 #470744
triadic
#2A0747 #472A07 #07472A
tetradic
#2A0747 #470A07 #244707 #074447
square
#2A0747 #470A07 #244707 #074447
split-complementary
#2A0747 #444707 #07470A
monochromatic
#10031C #10031C #2A0747 #4B0C7F #6C12B6

Accessibility & contrast

On white

17.22
#2A0747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0747
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0747#FFFFFF#000000##FFFFFF
##2A07471.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0747;
/* rgb */ color: rgb(42, 7, 71);
/* oklch */ color: oklch(23.6% 0.109 303.5);
Tailwind
colors: {
  custom: {
    50: '#684c7b',
    500: '#2a0747',
    950: '#000000',
  },
}
SCSS
$custom: #2a0747;
$custom-light: #684c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0747",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 272.813,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23639,
    "c": 0.10908,
    "h": 303.5
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#2A0747
secondary
#508624
accent
#F82F8A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0747

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

Preview Lab → · Contrast checker → · Palette generator →

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