#2A1054#2A1054

#2A1054 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.114 H 294.5°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1054
RGBrgb(42, 16, 84)
HSLhsl(263, 68%, 20%)
HSVhsv(263, 81%, 33%)
CMYKcmyk(50%, 81%, 0%, 67.1%)
CIE-LABlab(12.63, 29.92, -36.23)
CIE-LCHlch(12.63, 46.99, 309.55°)
OKLaboklab(26.02% 0.0473 -0.1038)
OKLCHoklch(26.02% 0.114 294.5)
XYZxyz(2.7399, 1.5028, 8.5315)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1054 #3A5410
analogous
#101854 #2A1054 #4C1054
triadic
#2A1054 #542A10 #10542A
tetradic
#2A1054 #541018 #3A5410 #10544C
square
#2A1054 #541018 #3A5410 #10544C
split-complementary
#2A1054 #544C10 #185410
monochromatic
#0D051A #100621 #2A1054 #441A87 #5D24BB

Accessibility & contrast

On white

16.15
#2A1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1054
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1054#FFFFFF#000000##FFFFFF
##2A10541.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1054;
/* rgb */ color: rgb(42, 16, 84);
/* oklch */ color: oklch(26.0% 0.114 294.5);
Tailwind
colors: {
  custom: {
    50: '#695185',
    500: '#2a1054',
    950: '#000000',
  },
}
SCSS
$custom: #2a1054;
$custom-light: #695185;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1054",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 262.941,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26021,
    "c": 0.11408,
    "h": 294.5
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#2A1054
secondary
#6B8E32
accent
#EB3DA8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1054

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

Preview Lab → · Contrast checker → · Palette generator →

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