#2A0845#2A0845

#2A0845 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.106 H 304.5°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#2A0845
RGBrgb(42, 8, 69)
HSLhsl(273, 79%, 15%)
HSVhsv(273, 88%, 27%)
CMYKcmyk(39.1%, 88.4%, 0%, 72.9%)
CIE-LABlab(9.76, 29.60, -30.52)
CIE-LCHlch(9.76, 42.52, 314.12°)
OKLaboklab(23.56% 0.0598 -0.087)
OKLCHoklch(23.56% 0.106 304.5)
XYZxyz(2.1156, 1.0956, 5.7291)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0845 #234508
analogous
#0C0845 #2A0845 #450841
triadic
#2A0845 #452A08 #08452A
tetradic
#2A0845 #450C08 #234508 #084145
square
#2A0845 #450C08 #234508 #084145
split-complementary
#2A0845 #414508 #08450C
monochromatic
#11031B #11031B #2A0845 #4B0E7C #6D15B3

Accessibility & contrast

On white

17.22
#2A0845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0845
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0845#FFFFFF#000000##FFFFFF
##2A08451.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#251827
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0845;
/* rgb */ color: rgb(42, 8, 69);
/* oklch */ color: oklch(23.6% 0.106 304.5);
Tailwind
colors: {
  custom: {
    50: '#674c79',
    500: '#2a0845',
    950: '#000000',
  },
}
SCSS
$custom: #2a0845;
$custom-light: #674c79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0845",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 69
  },
  "hsl": {
    "h": 273.443,
    "s": 79.221,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23559,
    "c": 0.10556,
    "h": 304.5
  },
  "luminance": 0.01096
}

Semantic roles & 50–950 ramp

primary
#2A0845
secondary
#4F8326
accent
#F63289
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0845

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

Preview Lab → · Contrast checker → · Palette generator →

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