#2A0346#2A0346

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

Color values

HEX#2A0346
RGBrgb(42, 3, 70)
HSLhsl(275, 92%, 14%)
HSVhsv(275, 96%, 27%)
CMYKcmyk(40%, 95.7%, 0%, 72.5%)
CIE-LABlab(8.99, 32.43, -32.50)
CIE-LCHlch(8.99, 45.91, 314.94°)
OKLaboklab(23.05% 0.0649 -0.0927)
OKLCHoklch(23.05% 0.113 305)
XYZxyz(2.0926, 0.9996, 5.8759)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0346 #1F4603
analogous
#080346 #2A0346 #460341
triadic
#2A0346 #462A03 #03462A
tetradic
#2A0346 #460803 #1F4603 #034146
square
#2A0346 #460803 #1F4603 #034146
split-complementary
#2A0346 #414603 #034608
monochromatic
#12011D #12011D #2A0346 #4D0681 #7008BB

Accessibility & contrast

On white

17.50
#2A0346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0346
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0346#FFFFFF#000000##FFFFFF
##2A03461.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#241626
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0346;
/* rgb */ color: rgb(42, 3, 70);
/* oklch */ color: oklch(23.1% 0.113 305.0);
Tailwind
colors: {
  custom: {
    50: '#68497a',
    500: '#2a0346',
    950: '#000000',
  },
}
SCSS
$custom: #2a0346;
$custom-light: #68497a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0346",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 274.925,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23053,
    "c": 0.11319,
    "h": 305
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#2A0346
secondary
#4A871D
accent
#FF2982
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0346

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

Preview Lab → · Contrast checker → · Palette generator →

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