#2A2440#2A2440

#2A2440 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.1% C 0.051 H 292.7°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#2A2440
RGBrgb(42, 36, 64)
HSLhsl(253, 28%, 20%)
HSVhsv(253, 44%, 25%)
CMYKcmyk(34.4%, 43.8%, 0%, 74.9%)
CIE-LABlab(16.13, 10.44, -16.83)
CIE-LCHlch(16.13, 19.81, 301.81°)
OKLaboklab(28.11% 0.0196 -0.047)
OKLCHoklch(28.11% 0.051 292.7)
XYZxyz(2.5109, 2.1241, 5.1272)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2440 #3A4024
analogous
#242C40 #2A2440 #382440
triadic
#2A2440 #402A24 #24402A
tetradic
#2A2440 #40242C #3A4024 #244038
square
#2A2440 #40242C #3A4024 #244038
split-complementary
#2A2440 #403824 #2C4024
monochromatic
#0D0B14 #100E19 #2A2440 #443A67 #5D508E

Accessibility & contrast

On white

14.74
#2A2440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A2440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2440
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2440#FFFFFF#000000##FFFFFF
##2A24401.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2841
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#25292F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a2440;
/* rgb */ color: rgb(42, 36, 64);
/* oklch */ color: oklch(28.1% 0.051 292.7);
Tailwind
colors: {
  custom: {
    50: '#645e75',
    500: '#2a2440',
    950: '#000000',
  },
}
SCSS
$custom: #2a2440;
$custom-light: #645e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2440",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 64
  },
  "hsl": {
    "h": 252.857,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28105,
    "c": 0.05096,
    "h": 292.7
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#2A2440
secondary
#6B734D
accent
#C463B0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A2440

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

Preview Lab → · Contrast checker → · Palette generator →

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