#2A0842#2A0842

#2A0842 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.102 H 306.4°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#2A0842
RGBrgb(42, 8, 66)
HSLhsl(275, 78%, 15%)
HSVhsv(275, 88%, 26%)
CMYKcmyk(36.4%, 87.9%, 0%, 74.1%)
CIE-LABlab(9.48, 28.80, -28.87)
CIE-LCHlch(9.48, 40.78, 314.92°)
OKLaboklab(23.27% 0.0607 -0.0822)
OKLCHoklch(23.27% 0.102 306.4)
XYZxyz(2.0248, 1.0593, 5.2510)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0842 #204208
analogous
#0D0842 #2A0842 #42083D
triadic
#2A0842 #422A08 #08422A
tetradic
#2A0842 #420D08 #204208 #083D42
square
#2A0842 #420D08 #204208 #083D42
split-complementary
#2A0842 #3D4208 #08420D
monochromatic
#11031B #11031B #2A0842 #4D0F79 #6F15AF

Accessibility & contrast

On white

17.33
#2A0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0842
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0842#FFFFFF#000000##FFFFFF
##2A08421.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0842;
/* rgb */ color: rgb(42, 8, 66);
/* oklch */ color: oklch(23.3% 0.102 306.4);
Tailwind
colors: {
  custom: {
    50: '#674c77',
    500: '#2a0842',
    950: '#000000',
  },
}
SCSS
$custom: #2a0842;
$custom-light: #674c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0842",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 275.172,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23268,
    "c": 0.10213,
    "h": 306.4
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#2A0842
secondary
#4B8025
accent
#F53383
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0842

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

Preview Lab → · Contrast checker → · Palette generator →

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