#2A0642#2A0642

#2A0642 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.105 H 306.9°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#2A0642
RGBrgb(42, 6, 66)
HSLhsl(276, 83%, 14%)
HSVhsv(276, 91%, 26%)
CMYKcmyk(36.4%, 90.9%, 0%, 74.1%)
CIE-LABlab(9.12, 29.82, -29.45)
CIE-LCHlch(9.12, 41.91, 315.36°)
OKLaboklab(23.02% 0.063 -0.0838)
OKLCHoklch(23.02% 0.105 306.9)
XYZxyz(2.0031, 1.0159, 5.2438)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0642 #1E4206
analogous
#0C0642 #2A0642 #42063C
triadic
#2A0642 #422A06 #06422A
tetradic
#2A0642 #420C06 #1E4206 #063C42
square
#2A0642 #420C06 #1E4206 #063C42
split-complementary
#2A0642 #3C4206 #06420C
monochromatic
#12031C #12031C #2A0642 #4E0B7A #7110B2

Accessibility & contrast

On white

17.45
#2A0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0642
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0642#FFFFFF#000000##FFFFFF
##2A06421.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#261624
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0642;
/* rgb */ color: rgb(42, 6, 66);
/* oklch */ color: oklch(23.0% 0.105 306.9);
Tailwind
colors: {
  custom: {
    50: '#674b77',
    500: '#2a0642',
    950: '#000000',
  },
}
SCSS
$custom: #2a0642;
$custom-light: #674b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0642",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 276,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23021,
    "c": 0.10484,
    "h": 306.9
  },
  "luminance": 0.01016
}

Semantic roles & 50–950 ramp

primary
#2A0642
secondary
#488222
accent
#FA2E80
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0642

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

Preview Lab → · Contrast checker → · Palette generator →

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