#2A2230#2A2230

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

Color values

HEX#2A2230
RGBrgb(42, 34, 48)
HSLhsl(274, 17%, 16%)
HSVhsv(274, 29%, 19%)
CMYKcmyk(12.5%, 29.2%, 0%, 81.2%)
CIE-LABlab(14.68, 7.18, -7.81)
CIE-LCHlch(14.68, 10.61, 312.60°)
OKLaboklab(26.73% 0.0181 -0.0212)
OKLCHoklch(26.73% 0.028 310.4)
XYZxyz(2.0603, 1.8497, 3.0442)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2230 #283022
analogous
#232230 #2A2230 #30222F
triadic
#2A2230 #302A22 #22302A
tetradic
#2A2230 #302322 #283022 #222F30
square
#2A2230 #302322 #283022 #222F30
split-complementary
#2A2230 #2F3022 #223023
monochromatic
#100D12 #100D12 #2A2230 #493B54 #695578

Accessibility & contrast

On white

15.33
#2A2230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A2230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2230
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2230#FFFFFF#000000##FFFFFF
##2A22301.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202531
Deuteranopia (green-blind)
#212530
Tritanopia (blue-blind)
#292427
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a2230;
/* rgb */ color: rgb(42, 34, 48);
/* oklch */ color: oklch(26.7% 0.028 310.4);
Tailwind
colors: {
  custom: {
    50: '#635d68',
    500: '#2a2230',
    950: '#000000',
  },
}
SCSS
$custom: #2a2230;
$custom-light: #635d68;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2230",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 48
  },
  "hsl": {
    "h": 274.286,
    "s": 17.073,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26725,
    "c": 0.02789,
    "h": 310.4
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#2A2230
secondary
#55614D
accent
#BA6E8E
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #2A2230

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

Preview Lab → · Contrast checker → · Palette generator →

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