#2A1249#2A1249

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

Color values

HEX#2A1249
RGBrgb(42, 18, 73)
HSLhsl(266, 60%, 18%)
HSVhsv(266, 75%, 29%)
CMYKcmyk(42.5%, 75.3%, 0%, 71.4%)
CIE-LABlab(12.00, 25.47, -29.69)
CIE-LCHlch(12.00, 39.11, 310.63°)
OKLaboklab(25.25% 0.0475 -0.0846)
OKLCHoklch(25.25% 0.097 299.3)
XYZxyz(2.3734, 1.4059, 6.4484)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1249 #314912
analogous
#121549 #2A1249 #451249
triadic
#2A1249 #492A12 #12492A
tetradic
#2A1249 #491215 #314912 #124945
square
#2A1249 #491215 #314912 #124945
split-complementary
#2A1249 #494512 #154912
monochromatic
#0E0619 #0E0619 #2A1249 #461E7A #622AAB

Accessibility & contrast

On white

16.39
#2A1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A1249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1249
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1249#FFFFFF#000000##FFFFFF
##2A12491.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#231F2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1249;
/* rgb */ color: rgb(42, 18, 73);
/* oklch */ color: oklch(25.3% 0.097 299.3);
Tailwind
colors: {
  custom: {
    50: '#67527c',
    500: '#2a1249',
    950: '#000000',
  },
}
SCSS
$custom: #2a1249;
$custom-light: #67527c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1249",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 266.182,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25254,
    "c": 0.09707,
    "h": 299.3
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#2A1249
secondary
#608235
accent
#E4449E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1249

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

Preview Lab → · Contrast checker → · Palette generator →

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