#2A0447#2A0447

#2A0447 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.3% C 0.113 H 304.1°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#2A0447
RGBrgb(42, 4, 71)
HSLhsl(274, 89%, 15%)
HSVhsv(274, 94%, 28%)
CMYKcmyk(40.8%, 94.4%, 0%, 72.2%)
CIE-LABlab(9.27, 32.15, -32.73)
CIE-LCHlch(9.27, 45.89, 314.49°)
OKLaboklab(23.28% 0.0634 -0.0935)
OKLCHoklch(23.28% 0.113 304.1)
XYZxyz(2.1353, 1.0340, 6.0471)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0447 #214704
analogous
#090447 #2A0447 #470443
triadic
#2A0447 #472A04 #04472A
tetradic
#2A0447 #470904 #214704 #044347
square
#2A0447 #470904 #214704 #044347
split-complementary
#2A0447 #434704 #044709
monochromatic
#11021D #11021D #2A0447 #4C0781 #6F0BBB

Accessibility & contrast

On white

17.40
#2A0447 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0447
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0447#FFFFFF#000000##FFFFFF
##2A04471.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.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: #2a0447;
/* rgb */ color: rgb(42, 4, 71);
/* oklch */ color: oklch(23.3% 0.113 304.1);
Tailwind
colors: {
  custom: {
    50: '#684a7b',
    500: '#2a0447',
    950: '#000000',
  },
}
SCSS
$custom: #2a0447;
$custom-light: #684a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0447",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 71
  },
  "hsl": {
    "h": 274.03,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2328,
    "c": 0.11291,
    "h": 304.1
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#2A0447
secondary
#4C881F
accent
#FF2986
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0447

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

Preview Lab → · Contrast checker → · Palette generator →

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