#2A0844#2A0844

#2A0844 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.104 H 305.1°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2A0844
RGBrgb(42, 8, 68)
HSLhsl(274, 79%, 15%)
HSVhsv(274, 88%, 27%)
CMYKcmyk(38.2%, 88.2%, 0%, 73.3%)
CIE-LABlab(9.67, 29.33, -29.98)
CIE-LCHlch(9.67, 41.94, 314.37°)
OKLaboklab(23.46% 0.0601 -0.0854)
OKLCHoklch(23.46% 0.104 305.1)
XYZxyz(2.0848, 1.0833, 5.5670)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0844 #224408
analogous
#0C0844 #2A0844 #440840
triadic
#2A0844 #442A08 #08442A
tetradic
#2A0844 #440C08 #224408 #084044
square
#2A0844 #440C08 #224408 #084044
split-complementary
#2A0844 #404408 #08440C
monochromatic
#11031B #11031B #2A0844 #4C0E7B #6E15B2

Accessibility & contrast

On white

17.26
#2A0844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0844
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0844#FFFFFF#000000##FFFFFF
##2A08441.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001B43
Tritanopia (blue-blind)
#251826
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0844;
/* rgb */ color: rgb(42, 8, 68);
/* oklch */ color: oklch(23.5% 0.104 305.1);
Tailwind
colors: {
  custom: {
    50: '#674c78',
    500: '#2a0844',
    950: '#000000',
  },
}
SCSS
$custom: #2a0844;
$custom-light: #674c78;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0844",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 274,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23461,
    "c": 0.10441,
    "h": 305.1
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#2A0844
secondary
#4E8226
accent
#F53287
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0844

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

Preview Lab → · Contrast checker → · Palette generator →

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