#2A2034#2A2034

#2A2034 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.5% C 0.039 H 306.8°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2A2034
RGBrgb(42, 32, 52)
HSLhsl(270, 24%, 16%)
HSVhsv(270, 38%, 20%)
CMYKcmyk(19.2%, 38.5%, 0%, 79.6%)
CIE-LABlab(14.25, 9.72, -11.32)
CIE-LCHlch(14.25, 14.92, 310.66°)
OKLaboklab(26.46% 0.0233 -0.0311)
OKLCHoklch(26.46% 0.039 306.8)
XYZxyz(2.0911, 1.7732, 3.4802)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2034 #2A3420
analogous
#202034 #2A2034 #342034
triadic
#2A2034 #342A20 #20342A
tetradic
#2A2034 #342020 #2A3420 #203434
square
#2A2034 #342020 #2A3420 #203434
split-complementary
#2A2034 #343420 #203420
monochromatic
#0F0C13 #0F0C13 #2A2034 #49375A #674F80

Accessibility & contrast

On white

15.50
#2A2034 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A2034 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2034
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2034#FFFFFF#000000##FFFFFF
##2A20341.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2435
Deuteranopia (green-blind)
#1E2433
Tritanopia (blue-blind)
#292327
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a2034;
/* rgb */ color: rgb(42, 32, 52);
/* oklch */ color: oklch(26.5% 0.039 306.8);
Tailwind
colors: {
  custom: {
    50: '#645b6b',
    500: '#2a2034',
    950: '#000000',
  },
}
SCSS
$custom: #2a2034;
$custom-light: #645b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2034",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 52
  },
  "hsl": {
    "h": 270,
    "s": 23.81,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2646,
    "c": 0.0389,
    "h": 306.8
  },
  "luminance": 0.01773
}

Semantic roles & 50–950 ramp

primary
#2A2034
secondary
#586749
accent
#C06894
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2034

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

Preview Lab → · Contrast checker → · Palette generator →

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