#2A2238#2A2238

#2A2238 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.2% C 0.041 H 300.4°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2238
RGBrgb(42, 34, 56)
HSLhsl(262, 24%, 18%)
HSVhsv(262, 39%, 22%)
CMYKcmyk(25%, 39.3%, 0%, 78%)
CIE-LABlab(15.07, 9.44, -12.88)
CIE-LCHlch(15.07, 15.96, 306.23°)
OKLaboklab(27.16% 0.0209 -0.0356)
OKLCHoklch(27.16% 0.041 300.4)
XYZxyz(2.2405, 1.9218, 3.9935)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2238 #303822
analogous
#222538 #2A2238 #352238
triadic
#2A2238 #382A22 #22382A
tetradic
#2A2238 #382225 #303822 #223835
square
#2A2238 #382225 #303822 #223835
split-complementary
#2A2238 #383522 #253822
monochromatic
#0E0C13 #0E0C13 #2A2238 #47395E #635084

Accessibility & contrast

On white

15.17
#2A2238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2238
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2238#FFFFFF#000000##FFFFFF
##2A22381.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2639
Deuteranopia (green-blind)
#1E2637
Tritanopia (blue-blind)
#28252A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a2238;
/* rgb */ color: rgb(42, 34, 56);
/* oklch */ color: oklch(27.2% 0.041 300.4);
Tailwind
colors: {
  custom: {
    50: '#645d6e',
    500: '#2a2238',
    950: '#000000',
  },
}
SCSS
$custom: #2a2238;
$custom-light: #645d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2238",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 261.818,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27156,
    "c": 0.04129,
    "h": 300.4
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#2A2238
secondary
#5F6A4B
accent
#C167A0
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050407
muted
#79797A

Preview Lab

Preview with #2A2238

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

Preview Lab → · Contrast checker → · Palette generator →

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