#2A1246#2A1246

#2A1246 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.093 H 301.0°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2A1246
RGBrgb(42, 18, 70)
HSLhsl(268, 59%, 17%)
HSVhsv(268, 74%, 27%)
CMYKcmyk(40%, 74.3%, 0%, 72.5%)
CIE-LABlab(11.74, 24.57, -28.02)
CIE-LCHlch(11.74, 37.27, 311.25°)
OKLaboklab(24.99% 0.048 -0.0797)
OKLCHoklch(24.99% 0.093 301)
XYZxyz(2.2764, 1.3670, 5.9371)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1246 #2E4612
analogous
#121446 #2A1246 #441246
triadic
#2A1246 #462A12 #12462A
tetradic
#2A1246 #461214 #2E4612 #124644
square
#2A1246 #461214 #2E4612 #124644
split-complementary
#2A1246 #464412 #144612
monochromatic
#0F0618 #0F0618 #2A1246 #471F77 #642BA7

Accessibility & contrast

On white

16.49
#2A1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1246
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1246#FFFFFF#000000##FFFFFF
##2A12461.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1246;
/* rgb */ color: rgb(42, 18, 70);
/* oklch */ color: oklch(25.0% 0.093 301.0);
Tailwind
colors: {
  custom: {
    50: '#66517a',
    500: '#2a1246',
    950: '#000000',
  },
}
SCSS
$custom: #2a1246;
$custom-light: #66517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1246",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 267.692,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24985,
    "c": 0.09305,
    "h": 301
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#2A1246
secondary
#5D7F35
accent
#E2469A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1246

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

Preview Lab → · Contrast checker → · Palette generator →

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