#2A0546#2A0546

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

Color values

HEX#2A0546
RGBrgb(42, 5, 70)
HSLhsl(274, 87%, 15%)
HSVhsv(274, 93%, 27%)
CMYKcmyk(40%, 92.9%, 0%, 72.5%)
CIE-LABlab(9.34, 31.38, -31.91)
CIE-LCHlch(9.34, 44.75, 314.52°)
OKLaboklab(23.3% 0.0627 -0.0911)
OKLCHoklch(23.3% 0.111 304.5)
XYZxyz(2.1144, 1.0430, 5.8831)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0546 #214605
analogous
#0A0546 #2A0546 #460542
triadic
#2A0546 #462A05 #05462A
tetradic
#2A0546 #460A05 #214605 #054246
square
#2A0546 #460A05 #214605 #054246
split-complementary
#2A0546 #424605 #05460A
monochromatic
#11021D #11021D #2A0546 #4C097F #6F0DB8

Accessibility & contrast

On white

17.38
#2A0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0546
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0546#FFFFFF#000000##FFFFFF
##2A05461.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#241726
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0546;
/* rgb */ color: rgb(42, 5, 70);
/* oklch */ color: oklch(23.3% 0.111 304.5);
Tailwind
colors: {
  custom: {
    50: '#684b7a',
    500: '#2a0546',
    950: '#000000',
  },
}
SCSS
$custom: #2a0546;
$custom-light: #684b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0546",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 274.154,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23298,
    "c": 0.11053,
    "h": 304.5
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#2A0546
secondary
#4C8621
accent
#FD2B85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0546

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

Preview Lab → · Contrast checker → · Palette generator →

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