#2A1245#2A1245

#2A1245 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.092 H 301.6°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2A1245
RGBrgb(42, 18, 69)
HSLhsl(268, 59%, 17%)
HSVhsv(268, 74%, 27%)
CMYKcmyk(39.1%, 73.9%, 0%, 72.9%)
CIE-LABlab(11.65, 24.27, -27.46)
CIE-LCHlch(11.65, 36.65, 311.48°)
OKLaboklab(24.9% 0.0481 -0.0781)
OKLCHoklch(24.9% 0.092 301.6)
XYZxyz(2.2451, 1.3545, 5.7722)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1245 #2D4512
analogous
#121445 #2A1245 #441245
triadic
#2A1245 #452A12 #12452A
tetradic
#2A1245 #451214 #2D4512 #124544
square
#2A1245 #451214 #2D4512 #124544
split-complementary
#2A1245 #454412 #144512
monochromatic
#0F0618 #0F0618 #2A1245 #481F76 #652BA6

Accessibility & contrast

On white

16.52
#2A1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1245
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1245#FFFFFF#000000##FFFFFF
##2A12451.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001F44
Tritanopia (blue-blind)
#241D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1245;
/* rgb */ color: rgb(42, 18, 69);
/* oklch */ color: oklch(24.9% 0.092 301.6);
Tailwind
colors: {
  custom: {
    50: '#665179',
    500: '#2a1245',
    950: '#000000',
  },
}
SCSS
$custom: #2a1245;
$custom-light: #665179;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1245",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 268.235,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24897,
    "c": 0.09171,
    "h": 301.6
  },
  "luminance": 0.01355
}

Semantic roles & 50–950 ramp

primary
#2A1245
secondary
#5C7E35
accent
#E24698
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1245

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

Preview Lab → · Contrast checker → · Palette generator →

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