#2A1440#2A1440

#2A1440 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.082 H 304.1°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2A1440
RGBrgb(42, 20, 64)
HSLhsl(270, 52%, 16%)
HSVhsv(270, 69%, 25%)
CMYKcmyk(34.4%, 68.8%, 0%, 74.9%)
CIE-LABlab(11.71, 21.54, -23.85)
CIE-LCHlch(11.71, 32.14, 312.09°)
OKLaboklab(24.81% 0.0457 -0.0675)
OKLCHoklch(24.81% 0.082 304.1)
XYZxyz(2.1302, 1.3627, 5.0003)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1440 #2A4014
analogous
#141440 #2A1440 #401440
triadic
#2A1440 #402A14 #14402A
tetradic
#2A1440 #401414 #2A4014 #144040
square
#2A1440 #401414 #2A4014 #144040
split-complementary
#2A1440 #404014 #144014
monochromatic
#0F0717 #0F0717 #2A1440 #49236F #67319D

Accessibility & contrast

On white

16.50
#2A1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1440
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1440#FFFFFF#000000##FFFFFF
##2A14401.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#261D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1440;
/* rgb */ color: rgb(42, 20, 64);
/* oklch */ color: oklch(24.8% 0.082 304.1);
Tailwind
colors: {
  custom: {
    50: '#665375',
    500: '#2a1440',
    950: '#000000',
  },
}
SCSS
$custom: #2a1440;
$custom-light: #665375;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1440",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 270,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24809,
    "c": 0.0815,
    "h": 304.1
  },
  "luminance": 0.01363
}

Semantic roles & 50–950 ramp

primary
#2A1440
secondary
#587838
accent
#DC4C94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1440

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

Preview Lab → · Contrast checker → · Palette generator →

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