#2A0347#2A0347

#2A0347 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.114 H 304.4°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#2A0347
RGBrgb(42, 3, 71)
HSLhsl(274, 92%, 15%)
HSVhsv(274, 96%, 28%)
CMYKcmyk(40.8%, 95.8%, 0%, 72.2%)
CIE-LABlab(9.09, 32.68, -33.03)
CIE-LCHlch(9.09, 46.46, 314.70°)
OKLaboklab(23.16% 0.0645 -0.0943)
OKLCHoklch(23.16% 0.114 304.4)
XYZxyz(2.1245, 1.0123, 6.0435)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0347 #204703
analogous
#080347 #2A0347 #470342
triadic
#2A0347 #472A03 #03472A
tetradic
#2A0347 #470803 #204703 #034247
square
#2A0347 #470803 #204703 #034247
split-complementary
#2A0347 #424703 #034708
monochromatic
#11011D #11011D #2A0347 #4D0582 #6F08BC

Accessibility & contrast

On white

17.47
#2A0347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0347
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0347#FFFFFF#000000##FFFFFF
##2A03471.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#241727
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0347;
/* rgb */ color: rgb(42, 3, 71);
/* oklch */ color: oklch(23.2% 0.114 304.4);
Tailwind
colors: {
  custom: {
    50: '#684a7b',
    500: '#2a0347',
    950: '#000000',
  },
}
SCSS
$custom: #2a0347;
$custom-light: #684a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0347",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 274.412,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23158,
    "c": 0.11423,
    "h": 304.4
  },
  "luminance": 0.01012
}

Semantic roles & 50–950 ramp

primary
#2A0347
secondary
#4B881E
accent
#FF2984
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0347

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

Preview Lab → · Contrast checker → · Palette generator →

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