#2A1149#2A1149

#2A1149 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.099 H 299.7°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1149
RGBrgb(42, 17, 73)
HSLhsl(267, 62%, 18%)
HSVhsv(267, 77%, 29%)
CMYKcmyk(42.5%, 76.7%, 0%, 71.4%)
CIE-LABlab(11.78, 26.06, -30.03)
CIE-LCHlch(11.78, 39.76, 310.95°)
OKLaboklab(25.1% 0.0488 -0.0856)
OKLCHoklch(25.1% 0.099 299.7)
XYZxyz(2.3576, 1.3742, 6.4431)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1149 #304911
analogous
#111449 #2A1149 #461149
triadic
#2A1149 #492A11 #11492A
tetradic
#2A1149 #491114 #304911 #114946
square
#2A1149 #491114 #304911 #114946
split-complementary
#2A1149 #494611 #144911
monochromatic
#0E0619 #0E0619 #2A1149 #471D7B #6328AC

Accessibility & contrast

On white

16.47
#2A1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1149
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1149#FFFFFF#000000##FFFFFF
##2A11491.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1149;
/* rgb */ color: rgb(42, 17, 73);
/* oklch */ color: oklch(25.1% 0.099 299.7);
Tailwind
colors: {
  custom: {
    50: '#67517c',
    500: '#2a1149',
    950: '#000000',
  },
}
SCSS
$custom: #2a1149;
$custom-light: #67517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1149",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 266.786,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25102,
    "c": 0.09856,
    "h": 299.7
  },
  "luminance": 0.01374
}

Semantic roles & 50–950 ramp

primary
#2A1149
secondary
#5F8233
accent
#E5439D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1149

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

Preview Lab → · Contrast checker → · Palette generator →

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