#2A0A42#2A0A42

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

Color values

HEX#2A0A42
RGBrgb(42, 10, 66)
HSLhsl(274, 74%, 15%)
HSVhsv(274, 85%, 26%)
CMYKcmyk(36.4%, 84.8%, 0%, 74.1%)
CIE-LABlab(9.82, 27.81, -28.32)
CIE-LCHlch(9.82, 39.69, 314.48°)
OKLaboklab(23.51% 0.0584 -0.0805)
OKLCHoklch(23.51% 0.1 306)
XYZxyz(2.0465, 1.1027, 5.2582)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A42 #22420A
analogous
#0E0A42 #2A0A42 #420A3E
triadic
#2A0A42 #422A0A #0A422A
tetradic
#2A0A42 #420E0A #22420A #0A3E42
square
#2A0A42 #420E0A #22420A #0A3E42
split-complementary
#2A0A42 #3E420A #0A420E
monochromatic
#11041B #11041B #2A0A42 #4C1277 #6E1AAC

Accessibility & contrast

On white

17.20
#2A0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0A42
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A42#FFFFFF#000000##FFFFFF
##2A0A421.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#261825
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0a42;
/* rgb */ color: rgb(42, 10, 66);
/* oklch */ color: oklch(23.5% 0.100 306.0);
Tailwind
colors: {
  custom: {
    50: '#674d77',
    500: '#2a0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a42;
$custom-light: #674d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a42",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 274.286,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23509,
    "c": 0.09952,
    "h": 306
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#2A0A42
secondary
#4E7F29
accent
#F03787
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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