#2A2139#2A2139

#2A2139 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.0% C 0.045 H 300.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2A2139
RGBrgb(42, 33, 57)
HSLhsl(263, 27%, 18%)
HSVhsv(263, 42%, 22%)
CMYKcmyk(26.3%, 42.1%, 0%, 77.6%)
CIE-LABlab(14.82, 10.45, -13.98)
CIE-LCHlch(14.82, 17.45, 306.78°)
OKLaboklab(26.98% 0.023 -0.0388)
OKLCHoklch(26.98% 0.045 300.7)
XYZxyz(2.2371, 1.8754, 4.1142)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2139 #303921
analogous
#212439 #2A2139 #362139
triadic
#2A2139 #392A21 #21392A
tetradic
#2A2139 #392124 #303921 #213936
square
#2A2139 #392124 #303921 #213936
split-complementary
#2A2139 #393621 #243921
monochromatic
#0E0B13 #0E0B13 #2A2139 #473760 #634E87

Accessibility & contrast

On white

15.27
#2A2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2139
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2139#FFFFFF#000000##FFFFFF
##2A21391.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B253A
Deuteranopia (green-blind)
#1D2538
Tritanopia (blue-blind)
#27252A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a2139;
/* rgb */ color: rgb(42, 33, 57);
/* oklch */ color: oklch(27.0% 0.045 300.7);
Tailwind
colors: {
  custom: {
    50: '#645c6f',
    500: '#2a2139',
    950: '#000000',
  },
}
SCSS
$custom: #2a2139;
$custom-light: #645c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2139",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 262.5,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26981,
    "c": 0.04508,
    "h": 300.7
  },
  "luminance": 0.01875
}

Semantic roles & 50–950 ramp

primary
#2A2139
secondary
#5F6C4A
accent
#C365A0
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A2139

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

Preview Lab → · Contrast checker → · Palette generator →

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