#2A0746#2A0746

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

Color values

HEX#2A0746
RGBrgb(42, 7, 70)
HSLhsl(273, 82%, 15%)
HSVhsv(273, 90%, 27%)
CMYKcmyk(40%, 90%, 0%, 72.5%)
CIE-LABlab(9.69, 30.36, -31.35)
CIE-LCHlch(9.69, 43.64, 314.09°)
OKLaboklab(23.54% 0.0605 -0.0894)
OKLCHoklch(23.54% 0.108 304.1)
XYZxyz(2.1361, 1.0864, 5.8903)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0746 #234607
analogous
#0A0746 #2A0746 #460743
triadic
#2A0746 #462A07 #07462A
tetradic
#2A0746 #460A07 #234607 #074346
square
#2A0746 #460A07 #234607 #074346
split-complementary
#2A0746 #434607 #07460A
monochromatic
#11031C #11031C #2A0746 #4B0D7E #6D12B5

Accessibility & contrast

On white

17.25
#2A0746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0746
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0746#FFFFFF#000000##FFFFFF
##2A07461.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#241827
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0746;
/* rgb */ color: rgb(42, 7, 70);
/* oklch */ color: oklch(23.5% 0.108 304.1);
Tailwind
colors: {
  custom: {
    50: '#674c7a',
    500: '#2a0746',
    950: '#000000',
  },
}
SCSS
$custom: #2a0746;
$custom-light: #674c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0746",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 273.333,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23539,
    "c": 0.10795,
    "h": 304.1
  },
  "luminance": 0.01086
}

Semantic roles & 50–950 ramp

primary
#2A0746
secondary
#4F8524
accent
#F83089
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0746

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

Preview Lab → · Contrast checker → · Palette generator →

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