#2A1E34#2A1E34

#2A1E34 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.0% C 0.043 H 308.6°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2A1E34
RGBrgb(42, 30, 52)
HSLhsl(273, 27%, 16%)
HSVhsv(273, 42%, 20%)
CMYKcmyk(19.2%, 42.3%, 0%, 79.6%)
CIE-LABlab(13.64, 11.16, -12.26)
CIE-LCHlch(13.64, 16.57, 312.31°)
OKLaboklab(26% 0.027 -0.0338)
OKLCHoklch(26% 0.043 308.6)
XYZxyz(2.0388, 1.6687, 3.4628)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E34 #28341E
analogous
#1F1E34 #2A1E34 #341E33
triadic
#2A1E34 #342A1E #1E342A
tetradic
#2A1E34 #341F1E #28341E #1E3334
square
#2A1E34 #341F1E #28341E #1E3334
split-complementary
#2A1E34 #33341E #1E341F
monochromatic
#100B13 #100B13 #2A1E34 #49345B #694B82

Accessibility & contrast

On white

15.74
#2A1E34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1E34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E34
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E34#FFFFFF#000000##FFFFFF
##2A1E341.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2235
Deuteranopia (green-blind)
#1C2333
Tritanopia (blue-blind)
#292126
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1e34;
/* rgb */ color: rgb(42, 30, 52);
/* oklch */ color: oklch(26.0% 0.043 308.6);
Tailwind
colors: {
  custom: {
    50: '#64596b',
    500: '#2a1e34',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e34;
$custom-light: #64596b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e34",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 52
  },
  "hsl": {
    "h": 272.727,
    "s": 26.829,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25998,
    "c": 0.04329,
    "h": 308.6
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#2A1E34
secondary
#556747
accent
#C36590
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A

Preview Lab

Preview with #2A1E34

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

Preview Lab → · Contrast checker → · Palette generator →

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