#2A1248#2A1248

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

Color values

HEX#2A1248
RGBrgb(42, 18, 72)
HSLhsl(267, 60%, 18%)
HSVhsv(267, 75%, 28%)
CMYKcmyk(41.7%, 75%, 0%, 71.8%)
CIE-LABlab(11.91, 25.17, -29.13)
CIE-LCHlch(11.91, 38.50, 310.83°)
OKLaboklab(25.16% 0.0477 -0.083)
OKLCHoklch(25.16% 0.096 299.9)
XYZxyz(2.3406, 1.3927, 6.2751)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1248 #304812
analogous
#121548 #2A1248 #451248
triadic
#2A1248 #482A12 #12482A
tetradic
#2A1248 #481215 #304812 #124845
square
#2A1248 #481215 #304812 #124845
split-complementary
#2A1248 #484512 #154812
monochromatic
#0E0618 #0E0618 #2A1248 #471E79 #632AAA

Accessibility & contrast

On white

16.42
#2A1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1248
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1248#FFFFFF#000000##FFFFFF
##2A12481.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1248;
/* rgb */ color: rgb(42, 18, 72);
/* oklch */ color: oklch(25.2% 0.096 299.9);
Tailwind
colors: {
  custom: {
    50: '#67527b',
    500: '#2a1248',
    950: '#000000',
  },
}
SCSS
$custom: #2a1248;
$custom-light: #67527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1248",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 266.667,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25163,
    "c": 0.09573,
    "h": 299.9
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#2A1248
secondary
#5F8135
accent
#E3459D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1248

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

Preview Lab → · Contrast checker → · Palette generator →

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