#2A0440#2A0440

#2A0440 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.6% C 0.106 H 308.7°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#2A0440
RGBrgb(42, 4, 64)
HSLhsl(278, 88%, 13%)
HSVhsv(278, 94%, 25%)
CMYKcmyk(34.4%, 93.8%, 0%, 74.9%)
CIE-LABlab(8.56, 30.39, -28.94)
CIE-LCHlch(8.56, 41.96, 316.39°)
OKLaboklab(22.57% 0.0661 -0.0823)
OKLCHoklch(22.57% 0.106 308.7)
XYZxyz(1.9235, 0.9493, 4.9314)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0440 #1A4004
analogous
#0C0440 #2A0440 #400438
triadic
#2A0440 #402A04 #04402A
tetradic
#2A0440 #400C04 #1A4004 #043840
square
#2A0440 #400C04 #1A4004 #043840
split-complementary
#2A0440 #384004 #04400C
monochromatic
#13021D #13021D #2A0440 #50087A #760BB3

Accessibility & contrast

On white

17.65
#2A0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0440
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0440#FFFFFF#000000##FFFFFF
##2A04401.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#261423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0440;
/* rgb */ color: rgb(42, 4, 64);
/* oklch */ color: oklch(22.6% 0.106 308.7);
Tailwind
colors: {
  custom: {
    50: '#674975',
    500: '#2a0440',
    950: '#000000',
  },
}
SCSS
$custom: #2a0440;
$custom-light: #674975;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0440",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 278,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22571,
    "c": 0.10554,
    "h": 308.7
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#2A0440
secondary
#43811F
accent
#FE2978
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0440

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

Preview Lab → · Contrast checker → · Palette generator →

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