#2A2236#2A2236

#2A2236 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.0% C 0.038 H 302.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2A2236
RGBrgb(42, 34, 54)
HSLhsl(264, 23%, 17%)
HSVhsv(264, 37%, 21%)
CMYKcmyk(22.2%, 37%, 0%, 78.8%)
CIE-LABlab(14.97, 8.85, -11.63)
CIE-LCHlch(14.97, 14.61, 307.29°)
OKLaboklab(27.04% 0.0203 -0.032)
OKLCHoklch(27.04% 0.038 302.3)
XYZxyz(2.1926, 1.9026, 3.7410)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2236 #2E3622
analogous
#222436 #2A2236 #342236
triadic
#2A2236 #362A22 #22362A
tetradic
#2A2236 #362224 #2E3622 #223634
square
#2A2236 #362224 #2E3622 #223634
split-complementary
#2A2236 #363422 #243622
monochromatic
#0F0C13 #0F0C13 #2A2236 #473A5C #645181

Accessibility & contrast

On white

15.21
#2A2236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A2236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2236
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2236#FFFFFF#000000##FFFFFF
##2A22361.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2537
Deuteranopia (green-blind)
#1F2635
Tritanopia (blue-blind)
#282529
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a2236;
/* rgb */ color: rgb(42, 34, 54);
/* oklch */ color: oklch(27.0% 0.038 302.3);
Tailwind
colors: {
  custom: {
    50: '#645d6d',
    500: '#2a2236',
    950: '#000000',
  },
}
SCSS
$custom: #2a2236;
$custom-light: #645d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2236",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 54
  },
  "hsl": {
    "h": 264,
    "s": 22.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27043,
    "c": 0.0379,
    "h": 302.3
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#2A2236
secondary
#5D684C
accent
#BF699D
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050407
muted
#79797A

Preview Lab

Preview with #2A2236

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

Preview Lab → · Contrast checker → · Palette generator →

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