#2A0847#2A0847

#2A0847 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.108 H 303.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2A0847
RGBrgb(42, 8, 71)
HSLhsl(272, 80%, 15%)
HSVhsv(272, 89%, 28%)
CMYKcmyk(40.8%, 88.7%, 0%, 72.2%)
CIE-LABlab(9.96, 30.14, -31.61)
CIE-LCHlch(9.96, 43.67, 313.64°)
OKLaboklab(23.76% 0.0591 -0.0902)
OKLCHoklch(23.76% 0.108 303.2)
XYZxyz(2.1787, 1.1208, 6.0616)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0847 #254708
analogous
#0A0847 #2A0847 #470844
triadic
#2A0847 #472A08 #08472A
tetradic
#2A0847 #470A08 #254708 #084447
square
#2A0847 #470A08 #254708 #084447
split-complementary
#2A0847 #444708 #08470A
monochromatic
#10031C #10031C #2A0847 #4B0E7E #6B14B5

Accessibility & contrast

On white

17.15
#2A0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0847
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0847#FFFFFF#000000##FFFFFF
##2A08471.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0847;
/* rgb */ color: rgb(42, 8, 71);
/* oklch */ color: oklch(23.8% 0.108 303.2);
Tailwind
colors: {
  custom: {
    50: '#674c7b',
    500: '#2a0847',
    950: '#000000',
  },
}
SCSS
$custom: #2a0847;
$custom-light: #674c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0847",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 272.381,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23756,
    "c": 0.10784,
    "h": 303.2
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#2A0847
secondary
#528526
accent
#F6328C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0847

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

Preview Lab → · Contrast checker → · Palette generator →

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