#2A0742#2A0742

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

Color values

HEX#2A0742
RGBrgb(42, 7, 66)
HSLhsl(276, 81%, 14%)
HSVhsv(276, 89%, 26%)
CMYKcmyk(36.4%, 89.4%, 0%, 74.1%)
CIE-LABlab(9.30, 29.30, -29.16)
CIE-LCHlch(9.30, 41.34, 315.14°)
OKLaboklab(23.15% 0.0618 -0.083)
OKLCHoklch(23.15% 0.103 306.7)
XYZxyz(2.0140, 1.0376, 5.2474)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0742 #1F4207
analogous
#0C0742 #2A0742 #42073D
triadic
#2A0742 #422A07 #07422A
tetradic
#2A0742 #420C07 #1F4207 #073D42
square
#2A0742 #420C07 #1F4207 #073D42
split-complementary
#2A0742 #3D4207 #07420C
monochromatic
#12031C #12031C #2A0742 #4D0D79 #7013B1

Accessibility & contrast

On white

17.39
#2A0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0742
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0742#FFFFFF#000000##FFFFFF
##2A07421.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0742;
/* rgb */ color: rgb(42, 7, 66);
/* oklch */ color: oklch(23.1% 0.103 306.7);
Tailwind
colors: {
  custom: {
    50: '#674b77',
    500: '#2a0742',
    950: '#000000',
  },
}
SCSS
$custom: #2a0742;
$custom-light: #674b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0742",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 275.593,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23145,
    "c": 0.10347,
    "h": 306.7
  },
  "luminance": 0.01038
}

Semantic roles & 50–950 ramp

primary
#2A0742
secondary
#4A8124
accent
#F73181
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0742

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

Preview Lab → · Contrast checker → · Palette generator →

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