#2A1048#2A1048

#2A1048 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.099 H 300.6°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1048
RGBrgb(42, 16, 72)
HSLhsl(268, 64%, 17%)
HSVhsv(268, 78%, 28%)
CMYKcmyk(41.7%, 77.8%, 0%, 71.8%)
CIE-LABlab(11.49, 26.34, -29.82)
CIE-LCHlch(11.49, 39.78, 311.45°)
OKLaboklab(24.86% 0.0502 -0.085)
OKLCHoklch(24.86% 0.099 300.6)
XYZxyz(2.3095, 1.3307, 6.2648)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1048 #2E4810
analogous
#101248 #2A1048 #461048
triadic
#2A1048 #482A10 #10482A
tetradic
#2A1048 #481012 #2E4810 #104846
square
#2A1048 #481012 #2E4810 #104846
split-complementary
#2A1048 #484610 #124810
monochromatic
#0F0619 #0F0619 #2A1048 #471B7A #6426AC

Accessibility & contrast

On white

16.59
#2A1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1048
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1048#FFFFFF#000000##FFFFFF
##2A10481.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#231D2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1048;
/* rgb */ color: rgb(42, 16, 72);
/* oklch */ color: oklch(24.9% 0.099 300.6);
Tailwind
colors: {
  custom: {
    50: '#67507b',
    500: '#2a1048',
    950: '#000000',
  },
}
SCSS
$custom: #2a1048;
$custom-light: #67507b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1048",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 267.857,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24863,
    "c": 0.09871,
    "h": 300.6
  },
  "luminance": 0.01331
}

Semantic roles & 50–950 ramp

primary
#2A1048
secondary
#5D8232
accent
#E7419A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1048

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

Preview Lab → · Contrast checker → · Palette generator →

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