#2A1544#2A1544

#2A1544 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.085 H 301.1°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1544
RGBrgb(42, 21, 68)
HSLhsl(267, 53%, 17%)
HSVhsv(267, 69%, 27%)
CMYKcmyk(38.2%, 69.1%, 0%, 73.3%)
CIE-LABlab(12.26, 22.10, -25.77)
CIE-LCHlch(12.26, 33.95, 310.61°)
OKLaboklab(25.31% 0.0441 -0.0731)
OKLCHoklch(25.31% 0.085 301.1)
XYZxyz(2.2661, 1.4459, 5.6274)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1544 #2F4415
analogous
#151744 #2A1544 #421544
triadic
#2A1544 #442A15 #15442A
tetradic
#2A1544 #441517 #2F4415 #154442
square
#2A1544 #441517 #2F4415 #154442
split-complementary
#2A1544 #444215 #174415
monochromatic
#0E0717 #0E0717 #2A1544 #472373 #6432A2

Accessibility & contrast

On white

16.29
#2A1544 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1544 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1544
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1544#FFFFFF#000000##FFFFFF
##2A15441.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002045
Deuteranopia (green-blind)
#062043
Tritanopia (blue-blind)
#251F2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1544;
/* rgb */ color: rgb(42, 21, 68);
/* oklch */ color: oklch(25.3% 0.085 301.1);
Tailwind
colors: {
  custom: {
    50: '#665378',
    500: '#2a1544',
    950: '#000000',
  },
}
SCSS
$custom: #2a1544;
$custom-light: #665378;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1544",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 266.809,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25311,
    "c": 0.08539,
    "h": 301.1
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#2A1544
secondary
#5E7C39
accent
#DC4C9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1544

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

Preview Lab → · Contrast checker → · Palette generator →

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