#2A0848#2A0848

#2A0848 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.109 H 302.6°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#2A0848
RGBrgb(42, 8, 72)
HSLhsl(272, 80%, 16%)
HSVhsv(272, 89%, 28%)
CMYKcmyk(41.7%, 88.9%, 0%, 71.8%)
CIE-LABlab(10.06, 30.41, -32.15)
CIE-LCHlch(10.06, 44.25, 313.41°)
OKLaboklab(23.86% 0.0588 -0.0918)
OKLCHoklch(23.86% 0.109 302.6)
XYZxyz(2.2111, 1.1338, 6.2320)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0848 #264808
analogous
#0A0848 #2A0848 #480846
triadic
#2A0848 #482A08 #08482A
tetradic
#2A0848 #480A08 #264808 #084648
square
#2A0848 #480A08 #264808 #084648
split-complementary
#2A0848 #464808 #08480A
monochromatic
#10031C #10031C #2A0848 #4A0E7F #6A14B6

Accessibility & contrast

On white

17.12
#2A0848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0848
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0848#FFFFFF#000000##FFFFFF
##2A08481.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0848;
/* rgb */ color: rgb(42, 8, 72);
/* oklch */ color: oklch(23.9% 0.109 302.6);
Tailwind
colors: {
  custom: {
    50: '#684c7c',
    500: '#2a0848',
    950: '#000000',
  },
}
SCSS
$custom: #2a0848;
$custom-light: #684c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0848",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 72
  },
  "hsl": {
    "h": 271.875,
    "s": 80,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23856,
    "c": 0.10898,
    "h": 302.6
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#2A0848
secondary
#538626
accent
#F6318E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0848

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

Preview Lab → · Contrast checker → · Palette generator →

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