#2A2234#2A2234

#2A2234 is a dark, muted violet. Relative luminance 0.019; OKLCH L 26.9% C 0.035 H 304.5°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2A2234
RGBrgb(42, 34, 52)
HSLhsl(267, 21%, 17%)
HSVhsv(267, 35%, 20%)
CMYKcmyk(19.2%, 34.6%, 0%, 79.6%)
CIE-LABlab(14.87, 8.28, -10.36)
CIE-LCHlch(14.87, 13.27, 308.63°)
OKLaboklab(26.93% 0.0196 -0.0284)
OKLCHoklch(26.93% 0.035 304.5)
XYZxyz(2.1466, 1.8842, 3.4988)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2234 #2C3422
analogous
#222334 #2A2234 #332234
triadic
#2A2234 #342A22 #22342A
tetradic
#2A2234 #342223 #2C3422 #223433
square
#2A2234 #342223 #2C3422 #223433
split-complementary
#2A2234 #343322 #233422
monochromatic
#0F0C13 #0F0C13 #2A2234 #483A59 #66527E

Accessibility & contrast

On white

15.25
#2A2234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2234
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2234#FFFFFF#000000##FFFFFF
##2A22341.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2234;
/* rgb */ color: rgb(42, 34, 52);
/* oklch */ color: oklch(26.9% 0.035 304.5);
Tailwind
colors: {
  custom: {
    50: '#635d6b',
    500: '#2a2234',
    950: '#000000',
  },
}
SCSS
$custom: #2a2234;
$custom-light: #635d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2234",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 52
  },
  "hsl": {
    "h": 266.667,
    "s": 20.93,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26933,
    "c": 0.03453,
    "h": 304.5
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#2A2234
secondary
#5A664C
accent
#BD6A99
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2234

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

Preview Lab → · Contrast checker → · Palette generator →

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