#2A243A#2A243A

#2A243A is a dark, muted violet. Relative luminance 0.021; OKLCH L 27.7% C 0.041 H 296.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2A243A
RGBrgb(42, 36, 58)
HSLhsl(256, 23%, 18%)
HSVhsv(256, 38%, 23%)
CMYKcmyk(27.6%, 37.9%, 0%, 77.3%)
CIE-LABlab(15.80, 8.59, -13.16)
CIE-LCHlch(15.80, 15.72, 303.15°)
OKLaboklab(27.74% 0.0179 -0.0364)
OKLCHoklch(27.74% 0.041 296.2)
XYZxyz(2.3493, 2.0595, 4.2759)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A243A #343A24
analogous
#24293A #2A243A #35243A
triadic
#2A243A #3A2A24 #243A2A
tetradic
#2A243A #3A2429 #343A24 #243A35
square
#2A243A #3A2429 #343A24 #243A35
split-complementary
#2A243A #3A3524 #293A24
monochromatic
#0E0C13 #0F0D14 #2A243A #453B60 #615386

Accessibility & contrast

On white

14.87
#2A243A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A243A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A243A
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A243A#FFFFFF#000000##FFFFFF
##2A243A1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F273B
Deuteranopia (green-blind)
#1F2739
Tritanopia (blue-blind)
#27282C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a243a;
/* rgb */ color: rgb(42, 36, 58);
/* oklch */ color: oklch(27.7% 0.041 296.2);
Tailwind
colors: {
  custom: {
    50: '#645e70',
    500: '#2a243a',
    950: '#000000',
  },
}
SCSS
$custom: #2a243a;
$custom-light: #645e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a243a",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 58
  },
  "hsl": {
    "h": 256.364,
    "s": 23.404,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27745,
    "c": 0.04061,
    "h": 296.2
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#2A243A
secondary
#646C4E
accent
#C068A8
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A243A

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

Preview Lab → · Contrast checker → · Palette generator →

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