#2A1147#2A1147

#2A1147 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.096 H 300.8°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1147
RGBrgb(42, 17, 71)
HSLhsl(268, 61%, 17%)
HSVhsv(268, 76%, 28%)
CMYKcmyk(40.8%, 76.1%, 0%, 72.2%)
CIE-LABlab(11.61, 25.46, -28.93)
CIE-LCHlch(11.61, 38.53, 311.35°)
OKLaboklab(24.92% 0.0491 -0.0824)
OKLCHoklch(24.92% 0.096 300.8)
XYZxyz(2.2923, 1.3481, 6.0994)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1147 #2E4711
analogous
#111347 #2A1147 #451147
triadic
#2A1147 #472A11 #11472A
tetradic
#2A1147 #471113 #2E4711 #114745
square
#2A1147 #471113 #2E4711 #114745
split-complementary
#2A1147 #474511 #134711
monochromatic
#0F0619 #0F0619 #2A1147 #471D78 #6429AA

Accessibility & contrast

On white

16.54
#2A1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1147
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1147#FFFFFF#000000##FFFFFF
##2A11471.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#241E2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1147;
/* rgb */ color: rgb(42, 17, 71);
/* oklch */ color: oklch(24.9% 0.096 300.8);
Tailwind
colors: {
  custom: {
    50: '#67517b',
    500: '#2a1147',
    950: '#000000',
  },
}
SCSS
$custom: #2a1147;
$custom-light: #67517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1147",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 267.778,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2492,
    "c": 0.09593,
    "h": 300.8
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#2A1147
secondary
#5D8133
accent
#E4439A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1147

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

Preview Lab → · Contrast checker → · Palette generator →

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