#2A153C#2A153C

#2A153C is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.7% C 0.074 H 306.6°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2A153C
RGBrgb(42, 21, 60)
HSLhsl(272, 48%, 16%)
HSVhsv(272, 65%, 24%)
CMYKcmyk(30%, 65%, 0%, 76.5%)
CIE-LABlab(11.65, 19.72, -21.10)
CIE-LCHlch(11.65, 28.88, 313.07°)
OKLaboklab(24.67% 0.0441 -0.0594)
OKLCHoklch(24.67% 0.074 306.6)
XYZxyz(2.0385, 1.3548, 4.4282)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A153C #273C15
analogous
#16153C #2A153C #3C153A
triadic
#2A153C #3C2A15 #153C2A
tetradic
#2A153C #3C1615 #273C15 #153A3C
square
#2A153C #3C1615 #273C15 #153A3C
split-complementary
#2A153C #3A3C15 #153C16
monochromatic
#100817 #100817 #2A153C #4A2569 #693597

Accessibility & contrast

On white

16.52
#2A153C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A153C
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A153C#FFFFFF#000000##FFFFFF
##2A153C1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071E3D
Deuteranopia (green-blind)
#0F1F3B
Tritanopia (blue-blind)
#271C26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a153c;
/* rgb */ color: rgb(42, 21, 60);
/* oklch */ color: oklch(24.7% 0.074 306.6);
Tailwind
colors: {
  custom: {
    50: '#655372',
    500: '#2a153c',
    950: '#000000',
  },
}
SCSS
$custom: #2a153c;
$custom-light: #655372;
$custom-dark: #000000;
JSON
{
  "hex": "#2a153c",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 60
  },
  "hsl": {
    "h": 272.308,
    "s": 48.148,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24674,
    "c": 0.07402,
    "h": 306.6
  },
  "luminance": 0.01355
}

Semantic roles & 50–950 ramp

primary
#2A153C
secondary
#547439
accent
#D8508F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A153C

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

Preview Lab → · Contrast checker → · Palette generator →

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