#2A0748#2A0748

#2A0748 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.110 H 302.9°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#2A0748
RGBrgb(42, 7, 72)
HSLhsl(272, 82%, 15%)
HSVhsv(272, 90%, 28%)
CMYKcmyk(41.7%, 90.3%, 0%, 71.8%)
CIE-LABlab(9.89, 30.89, -32.42)
CIE-LCHlch(9.89, 44.78, 313.62°)
OKLaboklab(23.74% 0.0598 -0.0926)
OKLCHoklch(23.74% 0.11 302.9)
XYZxyz(2.2002, 1.1121, 6.2284)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0748 #254807
analogous
#0A0748 #2A0748 #480745
triadic
#2A0748 #482A07 #07482A
tetradic
#2A0748 #480A07 #254807 #074548
square
#2A0748 #480A07 #254807 #074548
split-complementary
#2A0748 #454807 #07480A
monochromatic
#10031C #10031C #2A0748 #4B0C80 #6B12B8

Accessibility & contrast

On white

17.18
#2A0748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0748
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0748#FFFFFF#000000##FFFFFF
##2A07481.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#241928
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0748;
/* rgb */ color: rgb(42, 7, 72);
/* oklch */ color: oklch(23.7% 0.110 302.9);
Tailwind
colors: {
  custom: {
    50: '#684c7c',
    500: '#2a0748',
    950: '#000000',
  },
}
SCSS
$custom: #2a0748;
$custom-light: #684c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0748",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 72
  },
  "hsl": {
    "h": 272.308,
    "s": 82.278,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2374,
    "c": 0.11019,
    "h": 302.9
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#2A0748
secondary
#528724
accent
#F92F8C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0748

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

Preview Lab → · Contrast checker → · Palette generator →

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