#2A2038#2A2038

#2A2038 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.7% C 0.046 H 302.6°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2A2038
RGBrgb(42, 32, 56)
HSLhsl(265, 27%, 17%)
HSVhsv(265, 43%, 22%)
CMYKcmyk(25%, 42.9%, 0%, 78%)
CIE-LABlab(14.46, 10.87, -13.83)
CIE-LCHlch(14.46, 17.59, 308.17°)
OKLaboklab(26.69% 0.0245 -0.0383)
OKLCHoklch(26.69% 0.046 302.6)
XYZxyz(2.1850, 1.8108, 3.9750)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2038 #2E3820
analogous
#202238 #2A2038 #362038
triadic
#2A2038 #382A20 #20382A
tetradic
#2A2038 #382022 #2E3820 #203836
square
#2A2038 #382022 #2E3820 #203836
split-complementary
#2A2038 #383620 #223820
monochromatic
#0F0B13 #0F0B13 #2A2038 #47365F #644D86

Accessibility & contrast

On white

15.42
#2A2038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A2038 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2038
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2038#FFFFFF#000000##FFFFFF
##2A20381.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2038;
/* rgb */ color: rgb(42, 32, 56);
/* oklch */ color: oklch(26.7% 0.046 302.6);
Tailwind
colors: {
  custom: {
    50: '#645b6e',
    500: '#2a2038',
    950: '#000000',
  },
}
SCSS
$custom: #2a2038;
$custom-light: #645b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2038",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 56
  },
  "hsl": {
    "h": 265,
    "s": 27.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26691,
    "c": 0.04551,
    "h": 302.6
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#2A2038
secondary
#5D6B49
accent
#C4649C
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A2038

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

Preview Lab → · Contrast checker → · Palette generator →

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