#2A143E#2A143E

#2A143E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.079 H 305.5°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2A143E
RGBrgb(42, 20, 62)
HSLhsl(271, 51%, 16%)
HSVhsv(271, 68%, 24%)
CMYKcmyk(32.3%, 67.7%, 0%, 75.7%)
CIE-LABlab(11.56, 20.95, -22.68)
CIE-LCHlch(11.56, 30.88, 312.74°)
OKLaboklab(24.65% 0.0457 -0.064)
OKLCHoklch(24.65% 0.079 305.5)
XYZxyz(2.0743, 1.3404, 4.7059)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A143E #283E14
analogous
#15143E #2A143E #3E143D
triadic
#2A143E #3E2A14 #143E2A
tetradic
#2A143E #3E1514 #283E14 #143D3E
square
#2A143E #3E1514 #283E14 #143D3E
split-complementary
#2A143E #3D3E14 #143E15
monochromatic
#100717 #100717 #2A143E #49236C #69329B

Accessibility & contrast

On white

16.56
#2A143E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A143E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A143E
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A143E#FFFFFF#000000##FFFFFF
##2A143E1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E3F
Deuteranopia (green-blind)
#0C1F3D
Tritanopia (blue-blind)
#271C26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a143e;
/* rgb */ color: rgb(42, 20, 62);
/* oklch */ color: oklch(24.6% 0.079 305.5);
Tailwind
colors: {
  custom: {
    50: '#655273',
    500: '#2a143e',
    950: '#000000',
  },
}
SCSS
$custom: #2a143e;
$custom-light: #655273;
$custom-dark: #000000;
JSON
{
  "hex": "#2a143e",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 62
  },
  "hsl": {
    "h": 271.429,
    "s": 51.22,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24649,
    "c": 0.0787,
    "h": 305.5
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#2A143E
secondary
#557638
accent
#DB4D91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A143E

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

Preview Lab → · Contrast checker → · Palette generator →

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