#2A1047#2A1047

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

Color values

HEX#2A1047
RGBrgb(42, 16, 71)
HSLhsl(268, 63%, 17%)
HSVhsv(268, 77%, 28%)
CMYKcmyk(40.8%, 77.5%, 0%, 72.2%)
CIE-LABlab(11.40, 26.04, -29.27)
CIE-LCHlch(11.40, 39.18, 311.67°)
OKLaboklab(24.77% 0.0504 -0.0834)
OKLCHoklch(24.77% 0.097 301.1)
XYZxyz(2.2772, 1.3177, 6.0944)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1047 #2D4710
analogous
#101247 #2A1047 #461047
triadic
#2A1047 #472A10 #10472A
tetradic
#2A1047 #471012 #2D4710 #104746
square
#2A1047 #471012 #2D4710 #104746
split-complementary
#2A1047 #474610 #124710
monochromatic
#0F0619 #0F0619 #2A1047 #481B79 #6527AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1047#FFFFFF#000000##FFFFFF
##2A10471.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)
#001E49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#241D2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1047;
/* rgb */ color: rgb(42, 16, 71);
/* oklch */ color: oklch(24.8% 0.097 301.1);
Tailwind
colors: {
  custom: {
    50: '#67507b',
    500: '#2a1047',
    950: '#000000',
  },
}
SCSS
$custom: #2a1047;
$custom-light: #67507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1047",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 268.364,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24771,
    "c": 0.09741,
    "h": 301.1
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#2A1047
secondary
#5C8132
accent
#E64298
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1047

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

Preview Lab → · Contrast checker → · Palette generator →

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