#2A2030#2A2030

#2A2030 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.2% C 0.032 H 312.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2030
RGBrgb(42, 32, 48)
HSLhsl(278, 20%, 16%)
HSVhsv(278, 33%, 19%)
CMYKcmyk(12.5%, 33.3%, 0%, 81.2%)
CIE-LABlab(14.05, 8.62, -8.77)
CIE-LCHlch(14.05, 12.29, 314.51°)
OKLaboklab(26.24% 0.0219 -0.0239)
OKLCHoklch(26.24% 0.032 312.5)
XYZxyz(2.0048, 1.7387, 3.0257)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2030 #263020
analogous
#222030 #2A2030 #30202E
triadic
#2A2030 #302A20 #20302A
tetradic
#2A2030 #302220 #263020 #202E30
square
#2A2030 #302220 #263020 #202E30
split-complementary
#2A2030 #2E3020 #203022
monochromatic
#100C12 #100C12 #2A2030 #4A3855 #6A5179

Accessibility & contrast

On white

15.58
#2A2030 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A2030 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2030
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2030#FFFFFF#000000##FFFFFF
##2A20301.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2331
Deuteranopia (green-blind)
#20242F
Tritanopia (blue-blind)
#2A2226
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a2030;
/* rgb */ color: rgb(42, 32, 48);
/* oklch */ color: oklch(26.2% 0.032 312.5);
Tailwind
colors: {
  custom: {
    50: '#635b68',
    500: '#2a2030',
    950: '#000000',
  },
}
SCSS
$custom: #2a2030;
$custom-light: #635b68;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2030",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 48
  },
  "hsl": {
    "h": 277.5,
    "s": 20,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26243,
    "c": 0.03244,
    "h": 312.5
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#2A2030
secondary
#53624A
accent
#BD6B8A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2030

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

Preview Lab → · Contrast checker → · Palette generator →

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