#2A2136#2A2136

#2A2136 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.8% C 0.040 H 303.5°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2A2136
RGBrgb(42, 33, 54)
HSLhsl(266, 24%, 17%)
HSVhsv(266, 39%, 21%)
CMYKcmyk(22.2%, 38.9%, 0%, 78.8%)
CIE-LABlab(14.66, 9.57, -12.10)
CIE-LCHlch(14.66, 15.43, 308.33°)
OKLaboklab(26.81% 0.0221 -0.0334)
OKLCHoklch(26.81% 0.04 303.5)
XYZxyz(2.1644, 1.8463, 3.7317)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2136 #2D3621
analogous
#212336 #2A2136 #352136
triadic
#2A2136 #362A21 #21362A
tetradic
#2A2136 #362123 #2D3621 #213635
square
#2A2136 #362123 #2D3621 #213635
split-complementary
#2A2136 #363521 #233621
monochromatic
#0F0C13 #0F0C13 #2A2136 #48385C #654F82

Accessibility & contrast

On white

15.34
#2A2136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A2136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2136
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2136#FFFFFF#000000##FFFFFF
##2A21361.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2537
Deuteranopia (green-blind)
#1E2535
Tritanopia (blue-blind)
#282429
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a2136;
/* rgb */ color: rgb(42, 33, 54);
/* oklch */ color: oklch(26.8% 0.040 303.5);
Tailwind
colors: {
  custom: {
    50: '#645c6d',
    500: '#2a2136',
    950: '#000000',
  },
}
SCSS
$custom: #2a2136;
$custom-light: #645c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2136",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 54
  },
  "hsl": {
    "h": 265.714,
    "s": 24.138,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26807,
    "c": 0.04004,
    "h": 303.5
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#2A2136
secondary
#5C694A
accent
#C1679A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050407
muted
#79797A

Preview Lab

Preview with #2A2136

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

Preview Lab → · Contrast checker → · Palette generator →

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