#2A1446#2A1446

#2A1446 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.090 H 300.3°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2A1446
RGBrgb(42, 20, 70)
HSLhsl(266, 56%, 18%)
HSVhsv(266, 71%, 27%)
CMYKcmyk(40%, 71.4%, 0%, 72.5%)
CIE-LABlab(12.19, 23.34, -27.29)
CIE-LCHlch(12.19, 35.91, 310.54°)
OKLaboklab(25.31% 0.0453 -0.0776)
OKLCHoklch(25.31% 0.09 300.3)
XYZxyz(2.3102, 1.4347, 5.9484)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1446 #304614
analogous
#141746 #2A1446 #431446
triadic
#2A1446 #462A14 #14462A
tetradic
#2A1446 #461417 #304614 #144643
square
#2A1446 #461417 #304614 #144643
split-complementary
#2A1446 #464314 #174614
monochromatic
#0E0718 #0E0718 #2A1446 #472276 #632FA5

Accessibility & contrast

On white

16.32
#2A1446 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1446 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1446
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1446#FFFFFF#000000##FFFFFF
##2A14461.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#022045
Tritanopia (blue-blind)
#241F2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1446;
/* rgb */ color: rgb(42, 20, 70);
/* oklch */ color: oklch(25.3% 0.090 300.3);
Tailwind
colors: {
  custom: {
    50: '#66537a',
    500: '#2a1446',
    950: '#000000',
  },
}
SCSS
$custom: #2a1446;
$custom-light: #66537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1446",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 70
  },
  "hsl": {
    "h": 266.4,
    "s": 55.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2531,
    "c": 0.08985,
    "h": 300.3
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#2A1446
secondary
#5F7E38
accent
#DF499D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1446

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

Preview Lab → · Contrast checker → · Palette generator →

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