#2A1148#2A1148

#2A1148 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.097 H 300.2°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1148
RGBrgb(42, 17, 72)
HSLhsl(267, 62%, 17%)
HSVhsv(267, 76%, 28%)
CMYKcmyk(41.7%, 76.4%, 0%, 71.8%)
CIE-LABlab(11.70, 25.76, -29.48)
CIE-LCHlch(11.70, 39.15, 311.15°)
OKLaboklab(25.01% 0.049 -0.084)
OKLCHoklch(25.01% 0.097 300.2)
XYZxyz(2.3247, 1.3610, 6.2699)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1148 #2F4811
analogous
#111348 #2A1148 #461148
triadic
#2A1148 #482A11 #11482A
tetradic
#2A1148 #481113 #2F4811 #114846
square
#2A1148 #481113 #2F4811 #114846
split-complementary
#2A1148 #484611 #134811
monochromatic
#0E0619 #0E0619 #2A1148 #471D7A #6428AB

Accessibility & contrast

On white

16.51
#2A1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1148
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1148#FFFFFF#000000##FFFFFF
##2A11481.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1148;
/* rgb */ color: rgb(42, 17, 72);
/* oklch */ color: oklch(25.0% 0.097 300.2);
Tailwind
colors: {
  custom: {
    50: '#67517b',
    500: '#2a1148',
    950: '#000000',
  },
}
SCSS
$custom: #2a1148;
$custom-light: #67517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1148",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 267.273,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2501,
    "c": 0.09724,
    "h": 300.2
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#2A1148
secondary
#5E8233
accent
#E5439B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1148

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

Preview Lab → · Contrast checker → · Palette generator →

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