#2A1349#2A1349

#2A1349 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.096 H 299.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#2A1349
RGBrgb(42, 19, 73)
HSLhsl(266, 59%, 18%)
HSVhsv(266, 74%, 29%)
CMYKcmyk(42.5%, 74%, 0%, 71.4%)
CIE-LABlab(12.21, 24.87, -29.33)
CIE-LCHlch(12.21, 38.46, 310.29°)
OKLaboklab(25.41% 0.0463 -0.0836)
OKLCHoklch(25.41% 0.096 299)
XYZxyz(2.3900, 1.4390, 6.4539)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1349 #324913
analogous
#131749 #2A1349 #451349
triadic
#2A1349 #492A13 #13492A
tetradic
#2A1349 #491317 #324913 #134945
square
#2A1349 #491317 #324913 #134945
split-complementary
#2A1349 #494513 #174913
monochromatic
#0E0618 #0E0618 #2A1349 #46207A #622CAA

Accessibility & contrast

On white

16.31
#2A1349 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1349
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1349#FFFFFF#000000##FFFFFF
##2A13491.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#23202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1349;
/* rgb */ color: rgb(42, 19, 73);
/* oklch */ color: oklch(25.4% 0.096 299.0);
Tailwind
colors: {
  custom: {
    50: '#67527c',
    500: '#2a1349',
    950: '#000000',
  },
}
SCSS
$custom: #2a1349;
$custom-light: #67527c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1349",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 73
  },
  "hsl": {
    "h": 265.556,
    "s": 58.696,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2541,
    "c": 0.09554,
    "h": 299
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#2A1349
secondary
#618236
accent
#E2469F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1349

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

Preview Lab → · Contrast checker → · Palette generator →

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