#2A243C#2A243C

#2A243C is a dark, muted violet. Relative luminance 0.021; OKLCH L 27.9% C 0.044 H 294.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2A243C
RGBrgb(42, 36, 60)
HSLhsl(255, 25%, 19%)
HSVhsv(255, 40%, 24%)
CMYKcmyk(30%, 40%, 0%, 76.5%)
CIE-LABlab(15.90, 9.20, -14.39)
CIE-LCHlch(15.90, 17.08, 302.58°)
OKLaboklab(27.86% 0.0185 -0.04)
OKLCHoklch(27.86% 0.044 294.9)
XYZxyz(2.4011, 2.0802, 4.5491)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A243C #363C24
analogous
#242A3C #2A243C #36243C
triadic
#2A243C #3C2A24 #243C2A
tetradic
#2A243C #3C242A #363C24 #243C36
square
#2A243C #3C242A #363C24 #243C36
split-complementary
#2A243C #3C3624 #2A3C24
monochromatic
#0D0B13 #0F0D16 #2A243C #453B62 #605289

Accessibility & contrast

On white

14.83
#2A243C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A243C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A243C#FFFFFF#000000##FFFFFF
##2A243C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E283D
Deuteranopia (green-blind)
#1F273B
Tritanopia (blue-blind)
#26282D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a243c;
/* rgb */ color: rgb(42, 36, 60);
/* oklch */ color: oklch(27.9% 0.044 294.9);
Tailwind
colors: {
  custom: {
    50: '#645e71',
    500: '#2a243c',
    950: '#000000',
  },
}
SCSS
$custom: #2a243c;
$custom-light: #645e71;
$custom-dark: #000000;
JSON
{
  "hex": "#2a243c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 60
  },
  "hsl": {
    "h": 255,
    "s": 25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27862,
    "c": 0.04407,
    "h": 294.9
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#2A243C
secondary
#666E4D
accent
#C166AB
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A243C

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

Preview Lab → · Contrast checker → · Palette generator →

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