#2A0C46#2A0C46

#2A0C46 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.102 H 302.9°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2A0C46
RGBrgb(42, 12, 70)
HSLhsl(271, 71%, 16%)
HSVhsv(271, 83%, 27%)
CMYKcmyk(40%, 82.9%, 0%, 72.5%)
CIE-LABlab(10.54, 27.92, -29.96)
CIE-LCHlch(10.54, 40.96, 312.98°)
OKLaboklab(24.13% 0.0553 -0.0854)
OKLCHoklch(24.13% 0.102 302.9)
XYZxyz(2.1915, 1.1974, 5.9088)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C46 #28460C
analogous
#0D0C46 #2A0C46 #460C45
triadic
#2A0C46 #462A0C #0C462A
tetradic
#2A0C46 #460D0C #28460C #0C4546
square
#2A0C46 #460D0C #28460C #0C4546
split-complementary
#2A0C46 #45460C #0C460D
monochromatic
#10041A #10041A #2A0C46 #49157A #691EAE

Accessibility & contrast

On white

16.94
#2A0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C46
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C46#FFFFFF#000000##FFFFFF
##2A0C461.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#241B28
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0c46;
/* rgb */ color: rgb(42, 12, 70);
/* oklch */ color: oklch(24.1% 0.102 302.9);
Tailwind
colors: {
  custom: {
    50: '#674e7a',
    500: '#2a0c46',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c46;
$custom-light: #674e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c46",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 271.034,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24132,
    "c": 0.10172,
    "h": 302.9
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#2A0C46
secondary
#55822C
accent
#ED3A91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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