#2A1154#2A1154

#2A1154 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.113 H 294.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1154
RGBrgb(42, 17, 84)
HSLhsl(262, 66%, 20%)
HSVhsv(262, 80%, 33%)
CMYKcmyk(50%, 79.8%, 0%, 67.1%)
CIE-LABlab(12.82, 29.38, -35.91)
CIE-LCHlch(12.82, 46.40, 309.28°)
OKLaboklab(26.16% 0.0463 -0.1029)
OKLCHoklch(26.16% 0.113 294.2)
XYZxyz(2.7551, 1.5332, 8.5366)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1154 #3B5411
analogous
#111A54 #2A1154 #4C1154
triadic
#2A1154 #542A11 #11542A
tetradic
#2A1154 #54111A #3B5411 #11544C
square
#2A1154 #54111A #3B5411 #11544C
split-complementary
#2A1154 #544C11 #1A5411
monochromatic
#0D0519 #110721 #2A1154 #431B87 #5D26BA

Accessibility & contrast

On white

16.07
#2A1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1154
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1154#FFFFFF#000000##FFFFFF
##2A11541.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#1E2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1154;
/* rgb */ color: rgb(42, 17, 84);
/* oklch */ color: oklch(26.2% 0.113 294.2);
Tailwind
colors: {
  custom: {
    50: '#695285',
    500: '#2a1154',
    950: '#000000',
  },
}
SCSS
$custom: #2a1154;
$custom-light: #695285;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1154",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 262.388,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26156,
    "c": 0.11284,
    "h": 294.2
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#2A1154
secondary
#6C8D34
accent
#E93FAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1154

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

Preview Lab → · Contrast checker → · Palette generator →

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