#2A153A#2A153A

#2A153A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.071 H 308.2°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#2A153A
RGBrgb(42, 21, 58)
HSLhsl(274, 47%, 15%)
HSVhsv(274, 64%, 23%)
CMYKcmyk(27.6%, 63.8%, 0%, 77.3%)
CIE-LABlab(11.51, 19.14, -19.90)
CIE-LCHlch(11.51, 27.61, 313.89°)
OKLaboklab(24.52% 0.044 -0.0559)
OKLCHoklch(24.52% 0.071 308.2)
XYZxyz(1.9866, 1.3341, 4.1550)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A153A #253A15
analogous
#17153A #2A153A #3A1537
triadic
#2A153A #3A2A15 #153A2A
tetradic
#2A153A #3A1715 #253A15 #15373A
square
#2A153A #3A1715 #253A15 #15373A
split-complementary
#2A153A #373A15 #153A17
monochromatic
#100816 #100816 #2A153A #4B2567 #6B3694

Accessibility & contrast

On white

16.58
#2A153A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A153A
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A153A#FFFFFF#000000##FFFFFF
##2A153A1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091E3B
Deuteranopia (green-blind)
#101F39
Tritanopia (blue-blind)
#281C25
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a153a;
/* rgb */ color: rgb(42, 21, 58);
/* oklch */ color: oklch(24.5% 0.071 308.2);
Tailwind
colors: {
  custom: {
    50: '#655370',
    500: '#2a153a',
    950: '#000000',
  },
}
SCSS
$custom: #2a153a;
$custom-light: #655370;
$custom-dark: #000000;
JSON
{
  "hex": "#2a153a",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 58
  },
  "hsl": {
    "h": 274.054,
    "s": 46.835,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24524,
    "c": 0.07117,
    "h": 308.2
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#2A153A
secondary
#527139
accent
#D6518B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A153A

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

Preview Lab → · Contrast checker → · Palette generator →

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