#2A143C#2A143C

#2A143C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.076 H 307.1°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2A143C
RGBrgb(42, 20, 60)
HSLhsl(273, 50%, 16%)
HSVhsv(273, 67%, 24%)
CMYKcmyk(30%, 66.7%, 0%, 76.5%)
CIE-LABlab(11.41, 20.38, -21.50)
CIE-LCHlch(11.41, 29.62, 313.47°)
OKLaboklab(24.49% 0.0457 -0.0606)
OKLCHoklch(24.49% 0.076 307.1)
XYZxyz(2.0204, 1.3188, 4.4222)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A143C #263C14
analogous
#16143C #2A143C #3C143A
triadic
#2A143C #3C2A14 #143C2A
tetradic
#2A143C #3C1614 #263C14 #143A3C
square
#2A143C #3C1614 #263C14 #143A3C
split-complementary
#2A143C #3A3C14 #143C16
monochromatic
#100817 #100817 #2A143C #4A236A #6A3398

Accessibility & contrast

On white

16.62
#2A143C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A143C
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A143C#FFFFFF#000000##FFFFFF
##2A143C1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3D
Deuteranopia (green-blind)
#0E1E3B
Tritanopia (blue-blind)
#271C25
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a143c;
/* rgb */ color: rgb(42, 20, 60);
/* oklch */ color: oklch(24.5% 0.076 307.1);
Tailwind
colors: {
  custom: {
    50: '#655272',
    500: '#2a143c',
    950: '#000000',
  },
}
SCSS
$custom: #2a143c;
$custom-light: #655272;
$custom-dark: #000000;
JSON
{
  "hex": "#2a143c",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 60
  },
  "hsl": {
    "h": 273,
    "s": 50,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24493,
    "c": 0.07589,
    "h": 307.1
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#2A143C
secondary
#537438
accent
#DA4E8D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A143C

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

Preview Lab → · Contrast checker → · Palette generator →

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