#2A1145#2A1145

#2A1145 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.093 H 302.0°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2A1145
RGBrgb(42, 17, 69)
HSLhsl(269, 60%, 17%)
HSVhsv(269, 75%, 27%)
CMYKcmyk(39.1%, 75.4%, 0%, 72.9%)
CIE-LABlab(11.43, 24.87, -27.81)
CIE-LCHlch(11.43, 37.31, 311.81°)
OKLaboklab(24.74% 0.0494 -0.0791)
OKLCHoklch(24.74% 0.093 302)
XYZxyz(2.2292, 1.3228, 5.7670)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1145 #2C4511
analogous
#111245 #2A1145 #441145
triadic
#2A1145 #452A11 #11452A
tetradic
#2A1145 #451112 #2C4511 #114544
square
#2A1145 #451112 #2C4511 #114544
split-complementary
#2A1145 #454411 #124511
monochromatic
#0F0619 #0F0619 #2A1145 #481D76 #6629A7

Accessibility & contrast

On white

16.61
#2A1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A1145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1145
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1145#FFFFFF#000000##FFFFFF
##2A11451.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#241D29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1145;
/* rgb */ color: rgb(42, 17, 69);
/* oklch */ color: oklch(24.7% 0.093 302.0);
Tailwind
colors: {
  custom: {
    50: '#665179',
    500: '#2a1145',
    950: '#000000',
  },
}
SCSS
$custom: #2a1145;
$custom-light: #665179;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1145",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 268.846,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24741,
    "c": 0.09328,
    "h": 302
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#2A1145
secondary
#5A7F33
accent
#E44497
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1145

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

Preview Lab → · Contrast checker → · Palette generator →

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