#2A1244#2A1244

#2A1244 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.090 H 302.3°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2A1244
RGBrgb(42, 18, 68)
HSLhsl(269, 58%, 17%)
HSVhsv(269, 74%, 27%)
CMYKcmyk(38.2%, 73.5%, 0%, 73.3%)
CIE-LABlab(11.57, 23.98, -26.89)
CIE-LCHlch(11.57, 36.03, 311.72°)
OKLaboklab(24.81% 0.0482 -0.0764)
OKLCHoklch(24.81% 0.09 302.3)
XYZxyz(2.2143, 1.3422, 5.6101)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1244 #2C4412
analogous
#121344 #2A1244 #431244
triadic
#2A1244 #442A12 #12442A
tetradic
#2A1244 #441213 #2C4412 #124443
square
#2A1244 #441213 #2C4412 #124443
split-complementary
#2A1244 #444312 #134412
monochromatic
#0F0618 #0F0618 #2A1244 #481F74 #662CA5

Accessibility & contrast

On white

16.56
#2A1244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1244
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1244#FFFFFF#000000##FFFFFF
##2A12441.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E46
Deuteranopia (green-blind)
#021E43
Tritanopia (blue-blind)
#251D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1244;
/* rgb */ color: rgb(42, 18, 68);
/* oklch */ color: oklch(24.8% 0.090 302.3);
Tailwind
colors: {
  custom: {
    50: '#665178',
    500: '#2a1244',
    950: '#000000',
  },
}
SCSS
$custom: #2a1244;
$custom-light: #665178;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1244",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 268.8,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2481,
    "c": 0.09036,
    "h": 302.3
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#2A1244
secondary
#5A7D35
accent
#E14697
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1244

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

Preview Lab → · Contrast checker → · Palette generator →

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