#2A153B#2A153B

#2A153B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.073 H 307.4°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2A153B
RGBrgb(42, 21, 59)
HSLhsl(273, 48%, 16%)
HSVhsv(273, 64%, 23%)
CMYKcmyk(28.8%, 64.4%, 0%, 76.9%)
CIE-LABlab(11.58, 19.43, -20.50)
CIE-LCHlch(11.58, 28.25, 313.46°)
OKLaboklab(24.6% 0.0441 -0.0577)
OKLCHoklch(24.6% 0.073 307.4)
XYZxyz(2.0123, 1.3444, 4.2903)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A153B #263B15
analogous
#17153B #2A153B #3B1539
triadic
#2A153B #3B2A15 #153B2A
tetradic
#2A153B #3B1715 #263B15 #15393B
square
#2A153B #3B1715 #263B15 #15393B
split-complementary
#2A153B #393B15 #153B17
monochromatic
#100817 #100817 #2A153B #4A2568 #6A3595

Accessibility & contrast

On white

16.55
#2A153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A153B
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A153B#FFFFFF#000000##FFFFFF
##2A153B1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081E3C
Deuteranopia (green-blind)
#101F3A
Tritanopia (blue-blind)
#271C25
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a153b;
/* rgb */ color: rgb(42, 21, 59);
/* oklch */ color: oklch(24.6% 0.073 307.4);
Tailwind
colors: {
  custom: {
    50: '#655371',
    500: '#2a153b',
    950: '#000000',
  },
}
SCSS
$custom: #2a153b;
$custom-light: #655371;
$custom-dark: #000000;
JSON
{
  "hex": "#2a153b",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 273.158,
    "s": 47.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24598,
    "c": 0.0726,
    "h": 307.4
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

primary
#2A153B
secondary
#537239
accent
#D7518D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A153B

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

Preview Lab → · Contrast checker → · Palette generator →

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