#2A143A#2A143A

#2A143A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.073 H 308.7°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2A143A
RGBrgb(42, 20, 58)
HSLhsl(275, 49%, 15%)
HSVhsv(275, 66%, 23%)
CMYKcmyk(27.6%, 65.5%, 0%, 77.3%)
CIE-LABlab(11.26, 19.80, -20.30)
CIE-LCHlch(11.26, 28.36, 314.29°)
OKLaboklab(24.34% 0.0457 -0.0571)
OKLCHoklch(24.34% 0.073 308.7)
XYZxyz(1.9686, 1.2981, 4.1490)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A143A #243A14
analogous
#17143A #2A143A #3A1437
triadic
#2A143A #3A2A14 #143A2A
tetradic
#2A143A #3A1714 #243A14 #14373A
square
#2A143A #3A1714 #243A14 #14373A
split-complementary
#2A143A #373A14 #143A17
monochromatic
#100817 #100817 #2A143A #4B2468 #6C3395

Accessibility & contrast

On white

16.67
#2A143A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A143A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A143A
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A143A#FFFFFF#000000##FFFFFF
##2A143A1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071D3B
Deuteranopia (green-blind)
#0F1E39
Tritanopia (blue-blind)
#281B24
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a143a;
/* rgb */ color: rgb(42, 20, 58);
/* oklch */ color: oklch(24.3% 0.073 308.7);
Tailwind
colors: {
  custom: {
    50: '#655270',
    500: '#2a143a',
    950: '#000000',
  },
}
SCSS
$custom: #2a143a;
$custom-light: #655270;
$custom-dark: #000000;
JSON
{
  "hex": "#2a143a",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 58
  },
  "hsl": {
    "h": 274.737,
    "s": 48.718,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2434,
    "c": 0.07309,
    "h": 308.7
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#2A143A
secondary
#507238
accent
#D85089
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A143A

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

Preview Lab → · Contrast checker → · Palette generator →

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